How to change the path variable in Mac OS X
This is a bit trickier than it was in Windows, but not too bad once you get the hang of it.
1. Open up the terminal
2. Type the following:
export PATH=$PATH:/usr/local/mysql/bin>> ~/.bash_profile
Note: You would replace "/usr/local/mysql/bin" with whatever path you want to add to your system.
What this does is take your current path, represented by the variable "$PATH", and concatenates the string that follows it, ending with the ">>". It then adds that new string to the path, represented by PATH=, and it knows what file to edit by looking at the last part "~/.bash_profile" The first 2 characters "~/" simply tell the machine to search anywhere in the hard drive for the file ".bash_profile" and finally, the "." before "bash_profile" tells us that this file is hidden.
3. Type enter
4. Type the following:
env
5. Type enter
6. Look for the line that starts with PATH= and you should see your path added to the others.
7. Do a happy dance! You're done.


