mysql_conect access denied

From: Date: Tue, 18 Jan 2005 18:39:47 +0000
Subject: mysql_conect access denied
Groups: php.install 
Request: Send a blank email to php-install+get-15088@lists.php.net to get a copy of this message
Happy to post in this list! So is the software context: System: FreeBSD 5.2.1 sofware installed: PHP5.0 / MySql 4.1 / Apache 2.0 _________________________________________________________________ PHP Warning: mysql_connect() Access denied for user: 'scribe@localhost' (Using password: YES) in config.inc.php on line 31 __________________________________________________ the config.inc.php file is : _______________________________________ <? /* identifications des serveurs */ $server = getenv("HTTP_HOST"); //vars used for host serveur $dbhost = "localhost"; $dblogin = "enseigne"; $dbpass = "c9bv2MrV"; $dbname = "enseigne"; //vars pour la bible $dbhost2 = "localhost"; $dblogin2 = "scribe"; $dbpass2 = "_scribe_"; $dbname2 = "bible"; /* conexion aux bases de donnée */ $connexion = mysql_connect ($dbhost,$dblogin,$dbpass); /* conexion aux bases de donnée */ $connex_bible = mysql_connect ($dbhost2,$dblogin2,$dbpass2); if (!$connexion || !$connex_bible) { echo "---> error."; exit; } /* Etape 2 : connexion à la base */ if (!mysql_select_db ($dbname, $connexion)) { echo "---> error"; } if (!mysql_select_db ($dbname2, $connex_bible)) { echo "---> error"; } ?> ________________________________________________________ What is interesting is that this error seams to occur randomly. Do you have a guess ? Pierre

« previous php.install (#15088) next »