Adding mysql to my .bashrc PATH

Well, maybe I'm doing something really stupid.

I'm on OSX 10.6.1.

I want to add mysql to my path, so add the following to my .bashrc

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

when starting the terminal it does not work, which I expect, because .bash_profile does not load .bashrc at the moment.

but if I manually enter bash, I get the following error

bash: PATH: command not found

What am I doing wrong?

+5
source share
1 answer

you cannot have spaces. In other words, your PATH installation command should be:

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

Note the removal of spaces between PATH, = and $ {PATH}

+13
source

All Articles