Socket error

A place to discuss and receive support for the Web Auction application.

Socket error

Postby jamesmac » Sat May 31, 2008 5:33 am

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.
Posts: 1
Joined: Sat May 31, 2008 5:23 am

Postby shannah » Sat May 31, 2008 8:33 am

I believe that this is the issue that you are talking about:

Just need to change some PHP config files.

Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved