Try adding the following line to your .bash_profile
file.
export PATH="/usr/local/mysql/bin:$PATH"
export PATH="/usr/local/mysql/bin:$PATH"
You can do this easily with the following command, which will append the line if the file already exists or create a new file with the line if it doesn't.
echo 'export PATH="/usr/local/mysql/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/usr/local/mysql/bin:$PATH"' >> ~/.bash_profile