title: How to rename database in MySQL without loosing data?
body: <p>I am trying to rename my database by the following query:</p>
  
  <pre><code>RENAME DATABASE my_db TO newDB;
  </code></pre>
  
  <p>but its showing me the following error response:</p>
  
  <pre><code>Error Code: 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
   activation_server_db TO activationserver' at line 1
  </code></pre>
  
  <p>Please help me find where I am going wrong?</p>