Re: MySQL socket error

From: Date: Fri, 30 Nov 2001 08:06:38 +0000
Subject: Re: MySQL socket error
Groups: php.db 
Request: Send a blank email to php-db+get-14711@lists.php.net to get a copy of this message
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: Tmcomp69@aol.com <Tmcomp69@aol.com> To: php-db@lists.php.net <php-db@lists.php.net> 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 tom-mathews@supanet.com >, not the borrowed AOL address that this has just been sent from!) > >

« previous php.db (#14711) next »