Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
10942 Zobrazení

when I try from base management it says:

Could not drop database !

and when I try to drop via terminal:

dropdb: database removal failed: ERROR:  database "database" is being accessed by other users
DETAIL:  There are 4 other session(s) using the database.

I can drop other databases, but not the one I need to drop

any other possibilities?

Avatar
Zrušit
Nejlepší odpověď

Restarting the server may not fix this. If a user is logged into PostgreSQL, then restarting Odoo won't disconnect them. A better answer would be to restart PostgreSQL and try again.

Avatar
Zrušit
Nejlepší odpověď

Restart the service ( /etc/init.d/openerp-server restart) and immediately try again. If you are going to drop the database from commandline, then you can completely stop the OpenERP server and then try again.

Avatar
Zrušit

Ray Carnes Thank you. Helped me too. I restarted postgresql.

Related Posts Odpovědi Zobrazení Aktivita
1
lis 22
1995
0
bře 15
4179
0
úno 25
585
2
lis 24
4499
2
říj 24
1785