Created
July 11, 2017 19:25
-
-
Save camsaul/7722db14cc078a7fc776808f30c718a9 to your computer and use it in GitHub Desktop.
fix busted MySQL
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
#! /bin/bash | |
# kill the server | |
pkill -KILL mysqld | |
# drop all the DBs, logfiles, and other busted data | |
rm -rf /usr/local/var/mysql/*'@002'* | |
rm /usr/local/var/mysql/ib* | |
# now restart the server | |
mysqld |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment