Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Narien

macrumors member
Original poster
Jul 24, 2011
77
0
Hi, I need to use sql (more specifically mysql) and have installed it on my mac and everything works, however, in order to start the program i need to type /usr/local/mysql/bin/mysql (and then all the mysql settings) in order to start it.
I would like to remove the path and only type mysql in the terminal in order to start it.

Any advice on how to do this would be greatly appreciated.
 
you need to add /usr/local/mysql/bin to the PATH variable.

In your home directory, modify (or create if it doesn't exist) the file .bash_profile (notice the leading dot!). Add the following lines:

Code:
export PATH="/usr/local/mysql/bin:${PATH}"
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.