Bug #10786 Updated: localhost now fails in mysql_(p)connect

From: Date: Thu, 10 May 2001 12:53:44 +0000
Subject: Bug #10786 Updated: localhost now fails in mysql_(p)connect
Groups: php.dev 
Request: Send a blank email to php-dev+get-54681@lists.php.net to get a copy of this message
ID: 10786 Updated by: derick Reported By: davidv@angliaed.co.uk Old-Status: Open Status: Feedback Bug Type: MySQL related Operating system: PHP Version: 4.0.5 Assigned To: Comments: What is the error message you get? Can you also try to set: mysql.default_socket to the location where you mysql soscket is? (Probably: /tmp/mysql.sock or /var/lib/mysql.sock). Previous Comments: --------------------------------------------------------------------------- [2001-05-10 08:44:13] davidv@angliaed.co.uk Two systems have been upgraded from 4.0.4pl1 to 4.0.5 and both have then failed to connect to a MySQL database using 'localhost' in the mysql_connect or mysql_pconnect calls. The MySQL installation has not been upgraded. Replacing the libphp4.so with the 4.0.4pl1 version and restarting apache fixes the problem as does changing 'localhost' to '127.0.0.1' (plus a similar mod to mysql db and user tables in the database so that the host names match). The MySQL version is 3.23.32 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10786&edit=2

« previous php.dev (#54681) next »