Created
October 29, 2017 12:21
-
-
Save binaryk/cf340e0205d543e434c0600a9a936c33 to your computer and use it in GitHub Desktop.
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
/Applications/XAMPP/xamppfiles/etc/my.cnf | |
find the [mysqld] section, add one line: | |
innodb_force_recovery = 1 | |
then run | |
sudo /Applications/XAMPP/bin/mysql.server start | |
everything is ok again. | |
and then the last step: | |
edit the my.cnf again and remove the line you just added : | |
innodb_force_recovery = 1 | |
and restart mysql again. Otherwise all your tables will be read only |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment