Skip to content

Instantly share code, notes, and snippets.

@binaryk
Created October 29, 2017 12:21
Show Gist options
  • Save binaryk/cf340e0205d543e434c0600a9a936c33 to your computer and use it in GitHub Desktop.
Save binaryk/cf340e0205d543e434c0600a9a936c33 to your computer and use it in GitHub Desktop.
/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