تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
11575 أدوات العرض

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
نوفمبر 22
2471
0
مارس 15
4710
0
يوليو 25
1366
2
نوفمبر 24
6083
2
أكتوبر 24
3090