title: PostgreSQL: Drop PostgreSQL database through command line
body: <p>I'm trying to drop my database and create a new one through the command line.</p>
  
  <p>I log in using <code>psql -U username</code> and then do a <code>\connect template1</code>, followed by a <code>DROP DATABASE databasename;</code>.</p>
  
  <p>I get the error</p>
  
  <blockquote>
    <p>database databasename is being accessed by other users</p>
  </blockquote>
  
  <p>I shut down Apache and tried this again but I'm still getting this error. Am I doing something wrong?</p>