Add MYSQL Alias to mac terminal
March 29, 2012 Leave a comment
-bash: mysql: command not found
If you get this error when trying to log into mysql, you probably are missing an alias.
You can setup an alias on mac by entering this command
Note that this will only persist during your current session. More likely than not, you will want to add it to your .profile file to make it persist across reboots.
You can edit the .profile with this command
echo ‘alias mysql=/usr/local/mysql/bin/mysql’ >> ~/.profile