If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL - OSX

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-04, 12:51
Chessa Chessa is offline
Registered User
 
Join Date: Apr 2004
Posts: 6
MySQL - OSX

Hi there ladies/gents!

I am trying to install MYSQL on OSX. and is plagued with the following error:

The Objective: To be able to just type "mysql" to access the "mysql" command. instead of typing the full path: shell> /Library/MySQL/bin/mysql

After trying to install MySQL I made an attempt to add the directory "/Library/MySQL/bin" to $PATH environment variable in the shell.
(I am actually using a ".tcshrc" shell).

The manual said:
You will have to modify the file ".tcshrc" located within your home directory.

I could not locate that file

The next step was to create a new one.

"I really dont know how to do this"
Could anyone provide me with some step by step tips in order to achieve this?

Help is greatly appreciated...
Reply With Quote
  #2 (permalink)  
Old 04-02-04, 13:57
zeus77 zeus77 is offline
Registered User
 
Join Date: Mar 2004
Location: Venice,Italy
Posts: 20
if you want apply mod on all user you can edit the file /etc/profile adding the path of mysql

PATH="/bin:/sbin:/usr/bin:/usr/sbin"
become
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/Library/MySQL/bin"
you must have root permission (use sudo)

otherwise you can insert in you profile, from your terminal:
echo export PATH=\$PATH:/Library/MySQL/bin > .tcshrc
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On