Launch a Terminal window. You'll be in your home directory. Enter
ls .bash*
to see if you already have a .bash_profile or .bashrc. You don't get one by default, so you probably won't see one. (You should see a .bash_history.) If you don't have one, you can create one with the new PATH setting by entering
echo 'export PATH=$PATH:/usr/local/mysql/bin' >.bash_profile
If you do have one, but it doesn't have a PATH line (check with `cat .bash_profile`), you can add one with
echo 'export PATH=$PATH:/usr/local/mysql/bin' >>.bash_profile
(>> means append).
You can edit your .bash_profile with emacs, which comes standard with OS X.
emacs .bash_profile
(Ctl-x Ctl-s to save, Ctl-x Ctl-c to quit).
Once you've modified your .bash_profile, it will take effect in every Terminal window launched afterwards. Simply choose New Shell from the File Menu (CMD-n). No need to quit Terminal or log out/in or reboot!
I'm doubtful this will affect the preference pane, but it won't hurt to try, and it will make it easier to use all the command line tools which come with mysql.
Michael
P.S. I'm assuming you have OS X 10.3, where bash is the standard shell. You can enter
echo $SHELL
in Terminal to verify which shell you have.
Warren Young wrote:
Jeff Justice wrote:
I'm not sure where I would go to change the .bash_profile.
It's in your home directory. You land there just by opening a new Terminal window. I suppose if you had to wimp out, you could probably say:
$ TextEdit .bash_profile
But real Unix users don't use GUI text editors. :)
(I say "probably" because I don't have an OS X box in front of me at the moment.)
You'll probably have to log out and back in for this to take effect. Or reboot.
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]