I’m trying to drop my database and create a new one through the command line.

I log in using psql -U username and then do a \connect template1, followed by a DROP DATABASE databasename;.

I get the error

database databasename is being accessed by other users

I shut down Apache and tried this again but I’m still getting this error. Am I doing something wrong?

4 Answers
4

Leave a Reply

Your email address will not be published. Required fields are marked *