I installed MySQL via MacPorts. What is the command I need to stop the server (I need to test how my application behave when MySQL is dead)?
For those who used homebrew to install MySQL use the following commands below to start, stop, or restart MySQL
Brew start
/usr/local/bin/mysql.server start
Brew restart
/usr/local/bin/mysql.server restart
Brew stop
/usr/local/bin/mysql.server stop