ID: 16741 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Duplicate Bug Type: MySQL related Operating System: Redhat 7.2 PHP Version: 4.2.0 New Comment:
Same with debian potato with php 4.2.0 and mysql 4.23.49a Previous Comments: ------------------------------------------------------------------------ [2002-04-23 04:23:50] [EMAIL PROTECTED] Dupe of #16285 ------------------------------------------------------------------------ [2002-04-23 02:01:50] [EMAIL PROTECTED] Same thing happens on Debian testing. Same php.ini, same web server, same script. "Can't connect to MySQL server on 'localhost' (111) in /var/www/index.php" etc. etc. No problem with 4.1.2. ------------------------------------------------------------------------ [2002-04-23 00:57:38] [EMAIL PROTECTED] It happens in 4.2.0, not 4.1.2. mysql_connect("localhost", "username", "password") maps the host from "localhost" to "localhost.localdomain". It results "Warning: Host 'localhost.localdomain' is not allowed to connect to this MySQL server in /blah/blah/blah/db_connect.php on line N". Current resolution: Grant localhost.localdomain in MySQL. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16741&edit=1