MacResource
/usr/bin/mysql doesn't exist - Printable Version

+- MacResource (https://forums.macresource.com)
+-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1)
+--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3)
+--- Thread: /usr/bin/mysql doesn't exist (/showthread.php?tid=10957)



/usr/bin/mysql doesn't exist - Greg the dogsitter - 05-09-2006

I'd like to just type mysql into a Terminal window to access MySQL through a command line. To do so, I think mysql needs to live in /usr/bin/. Is that right?

If so, should I make an alias that points to /usr/bin/local/mysql/bin/mysql? If so, please tell me how, because command-option-drag doesn't work.

Thank you,

GtDS


Re: /usr/bin/mysql doesn't exist - Seacrest - 05-09-2006

add /usr/local/mysql/bin to your path.

in bash:
PATH=/usr/local/mysql/bin:$PATH

in tsch:
setenv PATH /usr/local/mysql/bin:$PATH




Re: /usr/bin/mysql doesn't exist - Seacrest - 05-09-2006

tcsh, not tsch.
I need to TCB.


Re: /usr/bin/mysql doesn't exist - Seacrest - 05-09-2006

Now I'm hungry for TCBY.


Re: /usr/bin/mysql doesn't exist - Greg the dogsitter - 05-09-2006

Thanks!