Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding mysql to my .bashrc PATH [closed]

Tags:

bash

path

macos

Ok, maybe I'm doing something really stupid.

I'm on OSX 10.6.1.

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

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

upon running terminal, it doesn't work, which I expect, because .bash_profile is not loading .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?

like image 902
Daniel Avatar asked Feb 22 '10 20:02

Daniel


1 Answers

you can't have any spaces. In other words, your PATH setting command should be:

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

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

like image 186
ennuikiller Avatar answered Oct 27 '22 17:10

ennuikiller