Yes, I have it configured to run as apache. But, as I mentioned, I have no problems accessing the database and running querys against it, it is only the mysql_select_db function that fails.
> Hello PHP, > > Friday, March 12, 2004, 6:25:09 PM, you wrote: > > P> OK, I do get the following error. > P> 1044: Access denied for user: '@localhost' to database 'mydatabase' > > P> Even though I specify the user in mysql_connect, for some reason, > P> mysql_select_db is trying to user a blank user, > P> Any Ideas? > > You said that you use "apache" as the username for MySQL - is this > something you've configured yourself? If not, it should be "root" and > the password should be blank unless you have also set that? In which > case it's missing from your connect command. > > -- > Best regards, > Richard Davey > http://www.phpcommunity.org/wiki/296.html > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php