I'm just trying to do the simple task of adding my MySQL directory to the PATH variable so that I can use the
mysql, etc. commands in my terminal on my Mac OS X 10.6.6 (Snow Leopard). After altering the
.bash_profile, and even creating a
.bashrc, and making sure that my path has been inputted correctly, every time I try running the
mysql command, or hitting
gives me the same exact results:
As you can see, no MySQL. Later, I realize that this isn't really the problem since I removed all three of those files from my
/Users/GabbAHH/ user directory, and I still get the same result!
Right now, the script inside my startup files look like this:
export PATH=/usr/local/mysql/bin:$PATH export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
Was there something I've done that made my Terminal bypass these startup files? Is it just reading from the
Does that give the same result? Regardless, I've interchanged them.
Also, how do I tell if I'm using an interactive or non-interactive shell, and a log-in/non log-in shell? I seem to be able to create folders, etc. without a prompt to input my password, although I remember prior I had to
sudo a lot of commands when installing gems for Ruby, etc. Also, I did need to input my password when turning MySQL on/off.