Hi, Check if your MySQL server is working properly - this error usually appears when the MySQL server is down. The other thing is to check whether the socket the MySQL server uses is /tmp/mysql.sock and if it is not modify the php configuration variable MYSQL_SOCKET
Hope this helps Dobromir Velev Web Developer http://www.websitepulse.com/ -----Original Message----- From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, November 29, 2001 23:48 Subject: [PHP-DB] MySQL socket error >Hi >I'm having a really big problem at the moment (or at least my server provider >is and it's gettting abit tiresome!) > >I've been using PHP/MySQL combo for a looong time, and never come across this >error before, and I don't know exactly what is causing it. >There's a new installation of php4.04 pl and MySQL 3-23-39 on red hat, but >when I try and run my usual php_connect I get the following error: - > >Warning: MySQL Connection Failed: Can't connect to local MySQL server through >socket '/tmp/mysql.sock' (2) in testfile.php on line 2 > > >Anyone have any ideas what is causing this (or more to the point how to fix >it - is it a configuration file issue, and if so which one?) > >Thanks > >Tom > >--part1_44.171de6dc.293805d8_boundary >Content-Type: text/html; charset="US-ASCII" >Content-Transfer-Encoding: 7bit > >Hi > >I'm having a really big problem at the moment (or at least my server provider >is and it's gettting abit tiresome!) > > > >I've been using PHP/MySQL combo for a looong time, and never come across this >error before, and I don't know exactly what is causing it. > >There's a new installation of php4.04 pl and MySQL 3-23-39 on red hat, but >when I try and run my usual php_connect I get the following error: - > >Warning: MySQL Connection Failed: Can't connect to local MySQL server through >socket '/tmp/mysql.sock' (2) in testfile.php on line 2 > > >Anyone have any ideas what is causing this (or more to the point how to fix >it - is it a configuration file issue, and if so which one?) > >Thanks > >Tom >(If you reply to me direct, please use [EMAIL PROTECTED] >, not the borrowed AOL address that this has just been sent from!) > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]