MeghaPatil Posted March 18 Share Posted March 18 I'm trying to drop a PostgreSQL database using the DROP DATABASE mydb command, but I getting this error: Please help me with any guidance.... Quote Link to comment https://forums.phpfreaks.com/topic/327051-stuck-in-the-procedure-of-dropping-database-in-progesq/ Share on other sites More sharing options...
Solution gizmola Posted March 23 Solution Share Posted March 23 When you connect to postgresql you specify a database. If you are connecting to the database you are trying to drop, you will be blocking your ability to drop it. Make sure you connect to the postgres database. If that is not the issue, and you are not connecting to mydb, you should be able to drop the database regardless of any other existing connections to it, using: drop database mydb with (force) Quote Link to comment https://forums.phpfreaks.com/topic/327051-stuck-in-the-procedure-of-dropping-database-in-progesq/#findComment-1652021 Share on other sites More sharing options...
MeghaPatil Posted Monday at 05:39 AM Author Share Posted Monday at 05:39 AM You gave a solution, and I tried it but again got stuck .... that's why I did a search and got lots of guides to solve my issue... I read https://www.dedicatedcore.com/blog/drop-postgresql-database/ this blog. they also gave lots of solutions, but no one can solve my problem... Pls share any other guide pls. Quote Link to comment https://forums.phpfreaks.com/topic/327051-stuck-in-the-procedure-of-dropping-database-in-progesq/#findComment-1652466 Share on other sites More sharing options...
gizmola Posted Wednesday at 07:23 PM Share Posted Wednesday at 07:23 PM What specific commands are you running, and what specific error message(s) are you receiving? Quote Link to comment https://forums.phpfreaks.com/topic/327051-stuck-in-the-procedure-of-dropping-database-in-progesq/#findComment-1652603 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.