Nov 10, 2018

How to fix: Starting MySQL… ERROR! The server quit without updating PID file

Check whether another mysql process has already been running:

ps -A | grep mysql

Kill those existing mysql process and start again.

Check mysql error file to get more detail of the cause.

If the error file says:

Can't create/write to file

One fix is to start mysqld with the --tmpdir option or to add the option to the [mysqld] section of your option file. For example, to specify a directory of /tmp, use these lines:


You also need to check the correct permission of the /tmp folder. More detail here.