Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Closed Thread
error on MySQL path - Mac command line - .profile
Old 09-11-2009, 10:47 PM error on MySQL path - Mac command line - .profile
Novice Talker

Posts: 11
Trades: 0
Hey there,
i was going to write a new path to MySQL into the .profile document on my Mac, so that i can access MySQL simply through typing 'mysql' into the command line and not having to write the whole path each time. Here is what i wrote in .profile:

PATH=$PATH:/Application/MAMP/Library/bin/
export PATH


But i made a spelling mistake in the path, and now it seems that i can't change it in the .profile document anymore. I would always get this error msg in terminal:

Last login: Sat Sep 12 11:32:36 on ttys000
You have new mail.
-bash: export: `/Application/MAMP/Library/bin': not a valid identifier
110:~ appleuser$ mysql
-bash: mysql: command not found
110:~ appleuser$


Is there a way to get that changed?

Thanks so much for your help!

honorfield
__________________
It's all happening for a reason.

Last edited by honorfield; 09-12-2009 at 12:36 AM..
honorfield is offline
View Public Profile Visit honorfield's homepage!
 
 
Register now for full access!
Old 09-12-2009, 02:15 AM Re: error on MySQL path - Mac command line - .profile
Novice Talker

Posts: 11
Trades: 0
Ok, i found my answer already.
I had to type the following line into the terminal:

sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/local/bin/mysql

that gave me the following error massage:

ln: /usr/local/bin/mysql: No such file or directory

So i created the directory with:

sudo mkdir -p /usr/local/bin

And typed the first command again and than it worked.
Now i can access MySQL just by typing mysql into the terminal.
I don't have to type the whole path anymore.
__________________
It's all happening for a reason.
honorfield is offline
View Public Profile Visit honorfield's homepage!
 
Closed Thread     « Reply to error on MySQL path - Mac command line - .profile
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10085 seconds with 12 queries