Sounds like either:

1) You don't have your correct username/password info in the mySQL/user
table
or
2) Your server is bound to an IP address or something (a frequent problem on
Win machines, but it looks like you're using Linux or something)

The localhost part isn't really the username that is being sent. It simply
appends the @localhost so you can see where you're connecting to. I would
check the users table in the mysql database. 

- Jonathan

-----Original Message-----
From: Keith Whyman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 7:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Connecting to MySQL


Can anyone help with this problem !
user name should just be keith but the @localhost gets added and then I
can't connect ???

Warning: MySQL Connection Failed: Access denied for user: 'keith@localhost'
(Using password: YES) in /usr/var/www/www.happy.de/html/cms/test.php on line
23
Problem connecting to DataBase


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to