Date: 11/30/01
- Next message: Dobromir Velev: "Re: [PHP-DB] mysql and regular expressions"
- Previous message: usa <email protected>: "[PHP-DB] Fw:Requested HolidaySpecial"
- Maybe in reply to: Tmcomp69 <email protected>: "[PHP-DB] MySQL socket error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected> <Tmcomp69 <email protected>>
To: php-db <email protected> <php-db <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 tom-mathews <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: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Dobromir Velev: "Re: [PHP-DB] mysql and regular expressions"
- Previous message: usa <email protected>: "[PHP-DB] Fw:Requested HolidaySpecial"
- Maybe in reply to: Tmcomp69 <email protected>: "[PHP-DB] MySQL socket error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

