Last active
March 22, 2019 16:25
-
-
Save ScarletPonytail/2a93600efa960f038359f823cdac2307 to your computer and use it in GitHub Desktop.
MySQL - Fix MySQL not starting on MAMP
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
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 |
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
01. Create my.cnf file in /Applications/MAMP/conf/. | |
02. Add the following: | |
[mysqld] | |
innodb_force_recovery = 1 |
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
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