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?