Skip to content

Instantly share code, notes, and snippets.

@ScarletPonytail
Last active March 22, 2019 16:25
Show Gist options
  • Save ScarletPonytail/2a93600efa960f038359f823cdac2307 to your computer and use it in GitHub Desktop.
Save ScarletPonytail/2a93600efa960f038359f823cdac2307 to your computer and use it in GitHub Desktop.
MySQL - Fix MySQL not starting on MAMP
01. Quit MAMP.
02. In the finder go to Applications/MAMP/db/mysql56/.
03. Delete the log files (in my case ib_logfile0 & ib_logfile1).
04. Restart MAMP
01. Create my.cnf file in /Applications/MAMP/conf/.
02. Add the following:
[mysqld]
innodb_force_recovery = 1
01. Quit MAMP
02. In the finder go to Applications/MAMP/tmp/mysql
03. Delete 'mysql.sock.lock'
04. Launch MAMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment