Check which terminal you are using with this command:
echo $SHELL
If you get /bin/zsh then execute this line to configure MySQL:
echo "export PATH=\${PATH}:/usr/local/mysql/bin" >> ~/.zshrc
UPDATE! If you get a “permission denied” access error here, try this instead (you need to be logged in with the administrator account on your Mac computer, and it will prompt you to type in your Mac user password after entering the following command): NOTE: Make sure to select and copy the whole command (you might need to scroll horizontally to see the whole command below)!
echo "export PATH=\${PATH}:/usr/local/mysql/bin" | sudo tee -a ~/.zshrc >/dev/null
Otherwise, if you get /bin/bash then execute this line instead:
echo "export PATH=\${PATH}:/usr/local/mysql/bin" >> ~/.bash_profile
UPDATE! If you get a “permission denied” access error here, try this instead (you need to be logged in with the administrator account on your Mac computer, and it will prompt you to type in your Mac user password after entering the following command): NOTE: Make sure to select and copy the whole command (you might need to scroll horizontally to see the whole command below)!
echo "export PATH=\${PATH}:/usr/local/mysql/bin" | sudo tee -a ~/.bash_profile >/dev/null
mysql -u root -p