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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to