Problems with MySQL

From: Date: Tue, 03 Apr 2001 16:30:57 +0000
Subject: Problems with MySQL
Groups: php.db 
Request: Send a blank email to php-db+get-8188@lists.php.net to get a copy of this message
Hello, I've just installed a porgram that uses PHP4 to access a MySQL database. The problem is that I get the following error when I try to access the PHP file via web : Warning: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) in /usr/local/hlstats/hlstatsinc/db.inc on line 65 The strange thing about this is that MySQL leaves the mysqld.sock in /tmp, not in the directory that the error reports. I've just installed MySQL v3.23, and I had v3.22 before, which had it's sock file on /var/run/mysqld. ¿Could it be possible that PHP is fetching an old config file somewhere? I read in another forum that this could also happen if you used an old MySQL client with a newer version, ¿Could this be the case? ¿How does PHP comunnicate with MySQL? Thank you for your help. Greetings Bruno (burnett@euskalparty.org)

« previous php.db (#8188) next »