-
-
Save tlongren/415ec2a545f16b0340e8 to your computer and use it in GitHub Desktop.
Check And Repair All MySQL Databases on Debian And Ubuntu Linux
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
#!/bin/sh | |
# | |
# cron ex: 0 0 1 * * /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /home/tyler/mysql-health.sh >> /home/tyler/mysql-health.log | |
mysqlcheck --defaults-file=/etc/mysql/debian.cnf --auto-repair --optimize --all-databases |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment