Created
February 20, 2012 18:29
-
-
Save fduran/1870522 to your computer and use it in GitHub Desktop.
Mysql status, check & repair
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
# www.fduran.com | |
# mysql status summary | |
mysqladmin -u root -pthepasswd process status | |
# check database mydb | |
/etc/init.d/mysqld stop; cd /var/lib/mysql; myisamchk --silent --force mydb/*.MYI | |
# repair mydb | |
/etc/init.d/mysqld start; mysqlcheck -u root -pthepassed --auto-repair --check --optimize --databases mydb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment