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 start back up. I also went into the \mamp\db\mysql\ and deleted the four log files hilited below. Then I turned the server off, then back on, but only Apache starts up, not MySQL.
There is also a process running in services called MySQL80. When I try to start it I get the error message shown. I have tried many ways to delete it, including going to the command prompt and using "sc mysql80" and going to 'regedit'. MySQL80 does not show up anywhere so that I can delete it.
Also, the Resource Monitor below shows that Apache is running on port 80, but nothing on port 3306. And yes, my MAMP Preferences are set to port 3306 for MySQL.
When MySQL was running, I had 2 processes of 'mysqld' listening: one session on IPv6 Port 3306, and the other session on IPv4 Port 3306?
What's wrong and how do I fix it?
And, is there suppose to be (2) sessions of 'mysqld' both listening on port 3306 where one is on IPv6 and the other is on IPv4?
Thanks Community.
my issue was Avast Antivirus blocking MAMP, disabled for 10 minutes and Apache started
This is what I did to solve this issue:
This is a very common issue with MAMP. If this happened to you out of the blue, this is probably the fix.
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:
C:\MAMP\db\mysql\
mysql-bin.*
, then delete them (includingmysql-bin.index
file.)C:\MAMP\conf\mysql\my.ini
log-bin
#
character at start of line.mysql-bin.*
files back in their place.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
run as administrator
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.