Skip to main content
Tweeted twitter.com/askdifferent/status/708480480681836546
this is about: environment variables in bash, when using MySQL in the command line; this is not especific of yosemite, neither of the Terminal app (see descriptions)
Link
Update heading so this hopefully comes up in new question suggestion window.
Link
Alistair McMillan
  • 14.3k
  • 3
  • 41
  • 66

How to add MySQL to $PATH variable to resolve "mysql: command not found"?

Source Link
JNevens
  • 639
  • 2
  • 6
  • 9

How to add MySQL to $PATH variable?

I installed MySQL on my Mac, and now I would like to add it to my $PATH variable. I want to be able to type mysql anywhere.

I tried adding the following to my .profile file:

export PATH=${PATH}/usr/local/mysql/bin/

I have restarted my Terminal but it does not do the trick. It still says: -bash: mysql: command not found.

How can I add this properly to my $PATH?

I am using OS X Yosemite.