Configuring MySQL via command line on mac

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
brian914
Forum Newbie
Posts: 4
Joined: Tue Nov 21, 2006 9:52 am

Configuring MySQL via command line on mac

Post by brian914 »

So I am trying to follow this tutorial on Lynda.com and at some point I must have taken a wrong turn. I have everything installed on my machine and was in the process of configuring my MySQL via the Terminal. Somehow it can't find the mySQL and I am too new to the topic to even trouble shoot this situation. I am hoping that if I explain what I did, it will be clear to someone more knowledgeable where I went wrong and how to fix it.

Here is what I have on my computer now:
OS X 10.4.11 Intel
Server version: Apache/1.3.41 (Darwin)
PHP 5.2.4
/usr/local/mysql/bin/mysql Ver 14.12 Distrib 5.0.51b, for apple-darwin8.11.1 (i686) using readline 5.0


I was told to type the following:
My-Computer-1:~ brian$ echo 'export PATH=$PATH:/user/local/mysql/bin' >> ~/.bash_profile

Then the following:
My-Computer-1:~ brian$ cat .bash_profile

Which gives me this, which I know is wrong, as I should just get that line once:
export PATH=$PATH:/user/local/mysql/bin/
export PATH=$PATH:/user/local/mysql/bin
export PATH=$PATH:/user/local/mysql/bin
export PATH=$PATH:/user/local/mysql/bin
My-Computer-1:~ brian$


Then when I type this:
My-Computer-1:~ brian$ which mysql
no mysql in /bin /sbin /usr/bin /usr/sbin /user/local/mysql/bin/ /user/local/mysql/bin /user/local/mysql/bin /user/local/mysql/bin
My-Computer-1:~ brian$


So it can't find the mySQL, right? When I installed it, I just followed the default settings, as far as I know.

How do I fix this.

Thanks a lot for help with this!
Post Reply