Skip to content

Instantly share code, notes, and snippets.

@denovo
Last active January 17, 2018 12:50
Show Gist options
  • Select an option

  • Save denovo/dc0fecd91d819fad387c36c526f8ccca to your computer and use it in GitHub Desktop.

Select an option

Save denovo/dc0fecd91d819fad387c36c526f8ccca to your computer and use it in GitHub Desktop.
mamp - fix problems with mysql not starting on server start

If mysql won't start when using mamp MAMP

Edit MAMP settings: File > Edit Template > MySql my.cnf

Add/Edit lines in my.cnf:

[mysqld]
innodb_force_recovery = 0

^ add or change line above to innodb_force_recovery = 1 (if there isn't this line in your config you may need to add it below "[mysqld]")

Then restart servers, mysql should start as normal. Remember to revert the changes above back to 0 and then use mamp as usual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment