PHP don't know 'localhost'

From: Date: Wed, 23 Jan 2002 23:29:11 +0000
Subject: PHP don't know 'localhost'
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81792@lists.php.net to get a copy of this message
Hi, Today I met a very strange problem. My system had been working perfect since long time back when I setup mysql/php/apache on RH 7.1, until today I found that php could not connect mysql with the user from 'localhost'. But actually user@localhost can login to mysql from terminal. 'Locahost' just don't work for PHP! However, if don't use 'localhost' but use the system's nick name (my machine is called 'puma'), then the mysql->connect() success! I just have no idea how it happend. Any one out there have idea about this please help! Thanks in advance! Alex

« previous php.general (#81792) next »