My MAMP mysql server won\'t start. All of the suggestions I\'ve seen on the web say to check for other mysqld processes running and kill them if they exist, and that it shou
I just had this problem. These are the steps that worked for me.
Open Preferences
in MAMP, make a note of your current Apache and MySQL Port numbers.
Click both Set to default Apache and MySQL ports
and Reset MAMP
buttons then OK.
Quit MAMP
Delete all files (not folders) from /Applications/MAMP/db/mysql
directory.
Reboot MAMP and click Start Servers
.
Note: if MySQL starts fine but Apache doesn't, go back to Preferences
and set Apache Port back to what it was before. MAMP should refresh after you click OK and both Apache and MySQL should start.
If http://localhost/MAMP/index.php
fails to load, open Developer Tools (Chrome), right-click on refresh button and select Empty Cache and Hard Reload
. The phpAdmin page should load. If not try going to Application
panel in Developer tools, select Clear Storage
from the menu and click Clear Site Data
.
I hope those steps provide a quick fix for someone without needed to destroy your database tables.