Mega Code Archive

 
Categories / MySQL Tutorial / MySQL Utilities
 

Create the database if it doesnt already exist with --databases option to specify the database we wish to back up

c:\mysql\bin\mysqldump -u root -p --databases myDatabase > myDatabase.sql