Page 1 of 1

Socket error

PostPosted: Sat May 31, 2008 5:33 am
by jamesmac
Hello everyone,
I am very new to this so there is probably an obvious solution to my problem.
This is what I get when accessing the index.php page:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) in /Library/WebServer/Documents/webauction/dataface/Dataface/Application.php on line 211
Error connecting to the database: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)


The actual socket is /tmp/mysql.sock but I have no idea where this needs to be changed. Or if this is even the problem, any help would be very much appreciated!

I have a Mac running Leopard, Apache 2.2, MySQL 5.0.51b, and PHP 5.2.5. If any further details are relevant please let me know and I will try to find them.

PostPosted: Sat May 31, 2008 8:33 am
by shannah
I believe that this is the issue that you are talking about:

http://drupal.org/node/46300#comment-86886

Just need to change some PHP config files.

-Steve