Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I was trying to drop a database from user interface, but it came up with "Could not drop database" error message, I also tried to drop it from terminal by using : sudo -u postgres dropdb db_to_drop, but it showed up with :
could not change directory to "/root"
dropdb: database removal failed: ERROR: database "db_to_drop" is being accessed by other users
DETAIL: There are 17 other session(s) using the database.
There are no other users connected while I was trying to drop this database. How this can be done ?
Thanks a lot.
Thanks for he reply, in fact, the key solution was to restart postgresql service at least 2 times, with : sudo service postgresql restart, this automatically loged out users from postgresql, and give me the possibility to drop the desired database, with : sudo -u postgres dropdb db_to_drop.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/21/14, 12:02 PM|
|Seen: 1889 times|
|Last updated: 3/16/15, 8:10 AM|