connect to mysql server mac terminal code example
Example 1: how to start mysql in terminal mac
mysql -u root -p
Example 2: how to run mysql on terminal mac
sudo sh -c 'echo /usr/local/mysql/bin > /etc/paths.d/mysql'
Example 3: connect to mysql server mac terminal
sudo /usr/local/mysql/support-files/mysql.server start
Example 4: connect to mysql server mac terminal
sudo /usr/local/mysql/support-files/mysql.server status