From http://stackoverflow.com/questions/3031412/how-to-export-a-mysql-database-using-command-prompt