stop mysql server mac code example

Example 1: stop mysql server mac

brew services stop mysql
brew services start mysql
brew services restart mysql

Example 2: start mysql server mac

sudo mysql.server start

Example 3: restart mysql mac

alias mysqlstart='sudo /usr/local/mysql/support-files/mysql.server start'
alias mysqlstop='sudo /usr/local/mysql/support-files/mysql.server stop'

Example 4: start mysql server mac

alias mysqlstart='sudo /usr/local/mysql/support-files/mysql.server start'
alias mysqlstop='sudo /usr/local/mysql/support-files/mysql.server stop'

Tags:

Misc Example