Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
11636 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
1
lis 22
2536
0
mar 15
4743
0
lip 25
1443
2
lis 24
6262
2
paź 24
3253