After downloading mysql dmg on mac if you go to terminal and try to issue mysql command and get mysql command not found there keep reading.
This, in most cases, is the terminal not knowing the mysql command unless you go to the actual installation folder.
To check that out, go to
If this is giving you the right mysql information, then it is a matter of telling the terminal what the mysql command is.
The above command would allow the command files to be recognized by the current issuing terminal. But you won’t be able to access those on new terminal
echo "export PATH=$PATH:/usr/local/mysql/bin" >>~/.bash_profile
The above command would simply append the path command you exported to the .bash_profile file.