MySQL not starting in MAMP OSX

Sometimes MySQL doesn’t come up again when attempting to start MAMP, – it just hangs after starting Apache. If you don’t want to have to reboot (and shutting down and restarting MAMP hasn’t helped) then quit MAMP, open a Terminal window and type:

ps aux | grep mysql
lsof -i
killall -9 mysqld