Pete Norris
Pete Norris

Reputation: 1054

Cannot get mySql started on MAMP 3.5.2

Due to untold issues with my workflow using MAMP 4, I decided to revert back to MAMP Pro 3.5.2. However I cannot get the mySQL to start. I feel like I've tried everything:

Reinstall kill processes Change permission on MAMP folder to 777 including sub folders. run MAMP instead Nothing works (mySql won't even start in MAMP (non-pro)

In the GUI I get: The MySQL configuration file my.cnf couldn't be written.

Error logs say:

161208 21:18:38 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended 161208 21:19:13 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql 161208 21:19:13 [Warning] Can't create test file /Applications/MAMP/db/mysql/Petes-MBP.lower-test 161208 21:19:13 [Warning] Can't create test file /Applications/MAMP/db/mysql/Petes-MBP.lower-test /Applications/MAMP/Library/bin/mysqld: Can't change dir to '/Applications/MAMP/db/mysql/' (Errcode: 2) 161208 21:19:13 [ERROR] Aborting

Please help. thanks

Upvotes: 1

Views: 673

Answers (2)

Dylan
Dylan

Reputation: 2219

For my I needed to create a missing dir.

mkdir -p /Applications/MAMP/db/mysql/

Upvotes: 0

Alessandro Mascolo
Alessandro Mascolo

Reputation: 133

Try creating the file manually using touch, e.g.

touch /Applications/MAMP/db/mysql/Petes-MBP.lower-test

I had the same error but with a different file, and I resolved creating it manually.

Upvotes: 2

Related Questions