Socket error
Posted: 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:
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.
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.