title: SQL command to backup and restore a MySQL database
body: <p>Need to provide this facility on a button-click in my web application. Could be done using mysqldump, but for that I'd have to start an external process? (the command prompt)</p>
  
  <p>Is there a simple SQL query that lets us backup and restore databases? (particularly for MySQL)</p>