Last active
November 11, 2015 09:23
-
-
Save hendrasyp/60cf4605676526040482 to your computer and use it in GitHub Desktop.
How to Dump and Restore MySQL Database via Console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// BACKUP / DUMP | |
// mysqldump -u<username> --password='<password>' <database> <table1,table2,..> > <filename>.<sql/extension> | |
// RESTORE | |
// mysqldump -u<username> --password='<password>'; <enter> | |
// use <databasename>; | |
// source <filename>.<sql/extension> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment