title: How do I change the database name using MySQL?
body: <p>How can I change the database name of my database?</p>
  
  <p>I tried to use the rename database command, but on the documents about it it is said that it is dangerous to use. Then what should I need to do to rename my database name?</p>
  
  <p>For example, if I want to rename my database to this.</p>
  
  <pre><code>database1 -&gt; database2?
  </code></pre>