Now that all of the latest distros of OSX use bash by default, I thought I would amend this with bash instructions.
When you instantiate a shell in OSX, the ~/.bash_login file is parsed. Because this isn't a global file you can edit it just like the .tshrc below. The entry you need to make is: export PATH=$PATH:/usr/local/mysql/bin You can use the vi instructions below. Daniel Salinas On 9/9/06 3:36 AM, "Paul McCullagh" <[EMAIL PROTECTED]> wrote: > Hi Steve, > > You have to edit a file called ".tcshrc" which resides in your users > home directory, and add ":/usr/local/mysql/bin" to the PATH > environment variable. > > The tricky part is, this file is not visible to any text editor (for > example BBEdit), so I always use a command line editor, for example > (start terminal): > > vi .tcshrc > > Then use the down arrow key to search through the file to see if you > find a line that begins with "setenv PATH". > > If not, add the line: > > setenv PATH "${PATH}:/usr/local/mysql/bin" > > Otherwise add ":/usr/local/mysql/bin" to the end, for example: > > setenv PATH ".:${PATH}:$HOME/bin:/usr/local/mysql/bin" > > To insert in "vi" press i. When you are done inserting press ESC. > > To delete a character enter "x". > > To quit and save, enter ":x". > > To abort changes, enter ":q!". > > On Sep 8, 2006, at 8:54 PM, Pastor Steve wrote: > >> Greetings, >> >> Does anyone know how I can set up my shell so that the mysql >> command works >> without navigating to the directory? I am using Mac OS 10.2.8 and 10.4 >> >> shell> mysql u name p >> >> ?? >> >> Thanks, >> >> -- >> Steve Marquez > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] > -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]