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!
Configuring MySQL via command line on mac
Moderator: General Moderators