Re: STrange Problem

From: Date: Fri, 12 Mar 2004 18:25:09 +0000
Subject: Re: STrange Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180275@lists.php.net to get a copy of this message
OK, I do get the following error. 1044: Access denied for user: '@localhost' to database 'mydatabase' Even though I specify the user in mysql_connect, for some reason, mysql_select_db is trying to user a blank user, Any Ideas? >Hi, >I am using RH9, Mysql 3.23.58, PHP 4.2.2, apache2.0 > >mysql_select_db("mydatabase",$connect_id) > >allways fails. > >I can use $connect_id = mysql_connect("localhost","apache"); (YES, I do have this line before the mysql_select_db); >just fine. >I can run querys against the database with no problems, but for some reason, > >mysql_select_db("mydatabase",$connect_id) > >will allways return false, and I don't see any errors anywhere in any log. Why can I not select the database with this, but have no problems using the database >with every other mysql function?

« previous php.general (#180275) next »