AW: [PHP-DB] Can't connect to mySQL from PHP
| From: | Tobias Wolff | Date: | Tue, 17 Oct 2000 11:40:19 +0000 |
| Subject: | AW: [PHP-DB] Can't connect to mySQL from PHP | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-3675@lists.php.net to get a copy of this message | ||
As I understand it, mysql communicates with other processes via a socket.
The socket is based on a file (in your case /var/lib/mysql/mysql.sock). If
you accidently delete this file, you cannot communicate with mysql anymore.
My advice: Shutdown and restart the mysql server and check whether or not
the socket file has been created.
Tobias.
-----Ursprüngliche Nachricht-----
Von: Daniel Nolan [mailto:trebz@barrysworld.com]
Gesendet: Montag, 16. Oktober 2000 22:04
An: php-db@lists.php.net
Betreff: [PHP-DB] Can't connect to mySQL from PHP
Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) in lib.inc.php on line 255
Hey guys, i keep getting the above error from any kind of connections i try
to make from php4 to my mysql database.
I can access mysql on the box and i know the user/pass is correct, does
anyone have any ideas why i should be getting this error? It doesn't log any
errors in mysql either..
--
Daniel "Trebz" Nolan
Developer @ www.barrysworld.com
Mob : 07909 511617 Business : 01924 422331
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net