跳至內容
選單
此問題已被標幟
2 回覆
11610 瀏覽次數

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?

頭像
捨棄
最佳答案

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.

頭像
捨棄
最佳答案

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.

頭像
捨棄

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

相關帖文 回覆 瀏覽次數 活動
1
11月 22
2514
0
3月 15
4734
0
7月 25
1416
2
11月 24
6197
2
10月 24
3152