title: Overwrite a database
body: <p>I have an online database and connect to it by using MySQLdb.</p>
  
  <pre><code>db = MySQLdb.connect(......)
  cur = db.cursor() 
  cur.execute("SELECT * FROM YOUR_TABLE_NAME")
  data = cur.fetchall()
  </code></pre>
  
  <p>Now, I want to write the whole database to my localhost (overwrite). Is there any way to do this?
  Thanks</p>