THIS IS THE ERROR I'M GETTING, CAN ANYONE TELL ME WHAT THE PROBLEM IS
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) in /mnt/htdocs/.phpfuncs on line 2
Warning: mysql_select_db(): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) in /mnt/htdocs/.phpfuncs on line 3
Warning: mysql_select_db(): A link to the server could not be established in /mnt/htdocs/.phpfuncs on line 3
Need help ASAP - MySQL Connect Error
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Restart your MySQL server 
If that's not where mysql.sock is actually stored then include the path to mysql.sock in the mysql_connect() function as per the manual.
If that's not where mysql.sock is actually stored then include the path to mysql.sock in the mysql_connect() function as per the manual.