connecting to local mysql server via command line to query macos code example
Example 1: start mysql server mac
sudo mysql.server start
Example 2: 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'