Odoo Help

Welcome!

This community 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.

0

Could not drop database openerp7

By
Yassine TEIMI
on 7/21/14, 12:02 PM 1,283 views

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.

0
Yassine TEIMI
On 7/21/14, 12:19 PM

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. 

0

Koffi KPONOUGLO

--Koffi KPONOUGLO--
768
| 5 2 6
Lomé, Togo
--Koffi KPONOUGLO--

Koffi KPONOUGLO

Koffi KPONOUGLO
On 7/21/14, 12:12 PM

On terminal try this command

dropdb "bdd_name".

I suppose you have admin access.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/21/14, 12:02 PM
Seen: 1283 times
Last updated: 3/16/15, 8:10 AM