MySQL Server on MAMP-Windows Will Not Start

前端 未结 6 878
既然无缘
既然无缘 2020-12-30 09:34

I am using MAMP 4.1 on Windows 10 and cannot get MySQL server to start. When I uninstalled MAMP and re-installed it MySQL server starts up, but when I stop it, it will not s

相关标签:
6条回答
  • 2020-12-30 10:14

    I had the same problem today. I did try removing everything from C:\MAMP\db\mysql\ and tried to restart MAMP & servers. But it failed.

    Then I noticed the following error in the mysql log file /MAMP/logs/mysql_error_log.err

    [error] Cannot open windows event_log ; check privileges

    This basically means that you don't have sufficient access.

    So

    • I replaced all the files that I originally deleted
    • shutdown the server & MAMP.
    • Now right click on the MAMP icon & choose run as administrator
    • Now it starts up normally
    0 讨论(0)
  • 2020-12-30 10:16

    This is what I did to solve this issue:

    1. Quit MAMP if open
    2. Navigate to /MAMP/tmp/mysql
    3. Rename mysql.sock.lock
    4. Restart MAMP
    0 讨论(0)
  • 2020-12-30 10:17

    my issue was Avast Antivirus blocking MAMP, disabled for 10 minutes and Apache started

    0 讨论(0)
  • 2020-12-30 10:19

    Uninstall entire MAMP and also any other xamap and wamp if you install previously. Check the drive C. No any other folder or file related to this present there. then reinstall MAMP again. All the problems are solve your apache and mysql both start. please vote me.

    0 讨论(0)
  • 2020-12-30 10:20

    I had the same problem. I contacted mamp support, and their answer was the following; it worked for me. Hope this helps you too. Stop all servers in MAMP.

    The below assumes your MAMP installation directory is C:\MAMP\.

    For MAMP:

    • With Windows Explorer go to folder C:\MAMP\db\mysql\
    • First backup all files that begin with mysql-bin.*, then delete them (including mysql-bin.index file.)
    • Then try starting all MAMP servers again (wait for MySQL to turn light on).
    • After that stop all MAMP servers again.
    • You'll now try to disable binary log-bin in MAMP (or MAMP PRO)
    • Open up MySQL configuration file in text editor of your choice: C:\MAMP\conf\mysql\my.ini
    • Find following text: log-bin
    • Comment this line by adding # character at start of line.
      #log-bin=mysql-bin
      
    • Save and restart servers
    • After that put the mysql-bin.* files back in their place.
    0 讨论(0)
  • 2020-12-30 10:33
    1. Turn off your MAMP Server.
    2. Locate your db folder for mysql. Example: C:\MAMP\db\mysql
    3. Rename the mysql-bin.index file to mysql-bin_old.index (or anything really)
    4. Turn on your MAMP Server

    This is a very common issue with MAMP. If this happened to you out of the blue, this is probably the fix.

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