Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
11630 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
marrask. 22
2536
0
maalisk. 15
4739
0
heinäk. 25
1432
2
marrask. 24
6245
2
lokak. 24
3215