Mysql

mw84

Registered
Hey, I've just installed php and mysql in order to run php scripts on my apache server. But I'm having some problems with the mysql setup. I'm following directions here:

http://www.entropy.ch/software/macosx/mysql/

But when I get up to running a test /usr/local/mysql/bin/mysql test

I just get this error

ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)


I followed the instructions on this error in his FAQ section but it didn't help, any ideas?
 
That's because your MySQL server isn't running. In the terminal type:
sudo /usr/local/mysql/bin/safe_mysqld &
Did you install the MySQL StartupItem as well ? If so, you can just reboot. If you didn't, you'll have to type that in every time you reboot your computer for mysql to be running.

By the way, you don't need to install entropy.ch's builds any more, MySQL releases .pkg OS X installers and has for some time. http://dev.mysql.com/downloads/mysql/4.1.html scroll down to Mac OS X.
 
Back
Top