MySQL changed the $PATH. Any idea how to change it back?

Travis86

Registered
I installed MySQL from the OS X installer package, and now the $PATH has changed so it doesn't include /sw/bin or /sw/sbin so I can't use any programs from Fink. There's nothing worse than software taking over to such a degree that you don't know how it's doing what you don't want it to do.

~/.bash_profile is:
export PATH="$PATH:/usr/local/bin:/usr/local/mysql/bin"

I don't think I had anything in the ~/.bash_profile before, but I could be wrong.

How does Fink put /sw/bin into the path, anyway? Did MySQL just erase Fink's line in ~/.bash_profile or what? I don't want to "patch" /sw/bin into the path, I'd really like thing to be like they were before.

Any idea how to do this?
 
Travis86 said:
~/.bash_profile is:
export PATH="$PATH:/usr/local/bin:/usr/local/mysql/bin"
Any idea how to do this?

How are /bin/sw added to the PATH? I thought that it would be in /etc/profile or /etc/bashrc, but this is not the case.

Can anyone explain the steps that osx uses to build the path i.e. What are the configuration files that are read and what order are they read?

In your case, perhaps you could add /usr/local/bin and /usr/local/mysql/bin to the /etc/profile and remove the ~/.bash_profile file. This might prevent your path from being messed up.
 
Back
Top