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 mysql@5.5


From: https://stackoverflow.com/a/57169447/2670370