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

前端 未结 26 2069
我寻月下人不归
我寻月下人不归 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:01

    Here's what worked for me:

    • Check to see if you accidentally installed mysql via Brew or something. brew list mysql
    • Uninstall it brew uninstall mysql
    • Try to fire up MAMP. Might need to reinstall.
    • Eventually upgrade to Vagrant and stop fighting with MAMP.
    0 讨论(0)
  • 2020-12-02 08:02

    Most of the answers here are offering to delete random files.

    Most of the time, this is the worst thing to do especially if it is important for you to keep the integrity of your development environment.

    As explained in the log file, if this problem is not related to a read access permission nor to a file you deleted in your mysql then the only solution is to:

    Open your my.conf file from the File menu in MAMP (File > Edit Template > MySQL)

    Find and edit this line to be: innodb_force_recovery = 1

    Save with ctrl+S

    MAMP will offer you to restart your servers

    Go back building the next unicorn :)

    0 讨论(0)
  • 2020-12-02 08:03

    I looked at the MAMP site. Go into MAMP/db/mysql56 and rename both the log files (I just changed the number at the end). Voila, restarted MAMP and all was well.

    Log File names:

    1. ib_logfile0
    2. ib_logfile1
    0 讨论(0)
  • 2020-12-02 08:03
    1. Stop MAMP server.
    2. Then go in following folder:

    Applications/MAMP/db/mysql56/

    In this folder, please remove all direct files except folders. This means that you have to remove only auto.cnf, ibdata, ib_logfile, not any folders.

    1. Restart MAMP server.

    It should work.

    Thank you.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-02 08:04

    For me the line innodb_additional_mem_pool_size in my.cnf was causing it

    0 讨论(0)
提交回复
热议问题