Installed mysql via brew but terminal can't find it. What's the proper way to alias it on a macos?

Viewed 1223

MacOS 10.12.6

Installed mysql via brew

mysql files are in /usr/local/Cellar/mysql\@5.7/5.7.24/bin

What is the proper way to make these available from the command line and from bash?

Thank you!

1 Answers

The solution to your problem is given using the command:

brew info mysql@5.7

which states:

If you need to have mysql@5.7 first in your PATH run:
echo 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> ~/.bash_profile
Related