Last active
September 8, 2015 10:21
-
-
Save faizanayubi/1cdfbb32da7eca5d83e1 to your computer and use it in GitHub Desktop.
Important MySQL Terminal Commands
This file contains hidden or 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
Backup database | |
mysqldump -uroot -p database_name > dumpfilename.sql | |
Restore database | |
mysql -uroot -p database_name < dumpfilename.sql | |
Checks database for error | |
mysqlcheck chris_wordpress | |
Auto repair databases | |
mysqlcheck chris_wordpress --auto-repair |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment