mysqld keeps automatically restarting
If you used homebrew to install mysql, mysqld
will keep on restarting unless you use following brew command:
brew services list
Get the name of service to stop and then run the following command:
brew services stop [email protected]
From: https://stackoverflow.com/a/57169447/2670370
In my case, it kept on restarting as soon as I killed the process using PID. Also brew stop
command didn't work as I installed without using homebrew. Then I went to mac system preferences and we have MySQL installed there. Just open it and stop the MySQL server and you're done. Here in the screenshot, you can find MySQL in bottom of system preferences.