MAMP mysql server won't start. No mysql processes are running

前端 未结 26 2155
我寻月下人不归
我寻月下人不归 2020-12-02 07:02

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

26条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 08:03

    I just had this problem. These are the steps that worked for me.

    1. Open Preferences in MAMP, make a note of your current Apache and MySQL Port numbers.

    2. Click both Set to default Apache and MySQL ports and Reset MAMP buttons then OK.

    3. Quit MAMP

    4. Delete all files (not folders) from /Applications/MAMP/db/mysql directory.

    5. 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.

    6. 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.

提交回复
热议问题