Hi, When you connect from command line, you are logging as user@localhost .. In your example, you said user@mybox thru PHP is not able to log in, I would say check what hosts are allowed for that user in the user table..
See: http://www.mysql.com/doc/A/c/Access_denied.html Gurhan -----Original Message----- From: Jasper Metselaar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 12:29 PM To: [EMAIL PROTECTED] Subject: Access denied when connecting to database from PHP Hi, I just compiled Apache 1.3.24 with PHP 4.1.2 with ./configure' '--with-mysql' '--with-apache=../apache_1.3.24' '--enable-track-vars' MySQL was already installed on the system. The problem, however, is that when I try to connect to a database from PHP, I get the following error. MySQL Error : Connection Error Error Number: 1045 Access denied for user: 'us10178a@mybox' (Using password: YES) Connecting to the database from the command prompt is working, so it's not a password problem. Does anyone have an idea on how to solve this? Thanks in advance! Regards, Jasper --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php