To find out the start command for mysqld (using a mac) I can do:
ps aux|grep mysql
I get the following output, which allows me to start mysql server.
/usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=...
How would I find the necessary command to stop mysql from the command line?
Try:
Or:
Or:
Or:
If you install the Launchctl in OSX you can try:
MacPorts
Note: this is persistent after reboot.
Homebrew
Binary installer
I found that in: https://stackoverflow.com/a/102094/58768