Member-only story
How to terminate the local mysql/mysqld process locally running in MacOS
In my Mac, I was trying to install an application called Vanilla (https://github.com/vanilla/vanilla-docker), which is an open source Q&A site application, based on PHP. This application also required to install and to run MySQL. This application came up with an automated installation tool, but I got stuck when it came with a message that complains that there is already a port that uses the port 0.0.0.0:3306. I ran the following command initially to find the application that uses the port:
sudo lsof -i :3306
This showed that mysql service is already running. So, I decided to kill this service by:
sudo kill -9 PID_NUMBER
where PID_NUMBER is the one that gotten from that lsof command.
But when I ran the installer again, the application installation failed again. I ran the lsof command again, and I saw the mysqld service is up again but with a different PID number. I tried this over and over again, and I even restarted the laptop numerous time. However, nothing fixed it.
I searched through Google to see if there is any issue similar to this: