title: Rename mysql database?
body: <p>How can I rename the MySQL database name using query?</p>
  
  <p>I tried <code>rename</code> database via phpmyadmin and getting the following error,</p>
  
  <pre><code>SQL query:
  
      RENAME DATABASE test TO test_bkp
  
  MySQL said: 
  
      #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DATABASE test To test_bkp' at line 1
  </code></pre>