Re: [PHP] Re: *Cannot connect to db
Can you get into the mysql DB via command line? If so, try to get in there and make sure this user has permissions in the mysql.users table to connect via localhost. Also verufy password they are using. Try to have this user connect via the commandline in MYSQL, which if he is unable to there, it would rule out your PHP being the problem... -Brad Warning: MySQL Connection Failed: Access denied for user: 'tmc@localhost' (Using password: YES) in e:\~~~\~~~\apache\website\~~~\testdb.php on line 8 The guy at the support says, that everybody else can connect no problems, sent me the code, which I copy-pasted and I still have this error. :(( Bastian Vogt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, leave out the @, and give us the error message. @ suppresses error messages of any function. HTH, Bastian -- 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
Re: [PHP] Re: *Cannot connect to db
Alexey Lysenkov wrote: Warning: MySQL Connection Failed: Access denied for user: 'tmc@localhost' (Using password: YES) in e:\~~~\~~~\apache\website\~~~\testdb.php on line 8 The guy at the support says, that everybody else can connect no problems, sent me the code, which I copy-pasted and I still have this error. :(( I'd believe the error message. Try to work out what you are doing wrong. The error message says you are trying to connect to a mysql database on the same computer as the webserver (which seems from the path to be a windows box), using the username and password you supplied. One of these must be wrong, or the database is not running. I can't think of any other option. You could go and see how everybody else is connecting, there must be some difference. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: *Cannot connect to db
Well, you will laugh, but it worked. :)) Not really, the way you showed - I commented out the username and password and it worked! :)) Mang... So whose fall was it? Definitely not php, right?... okay. Thanks Gregory! :)) - Original Message - From: Gregory Hernandez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 6:05 PM Subject: [PHP] Re: *Cannot connect to db just humor with this: try commenting out the lines $dbname = marketingcompany; $hostname=localhost; to appear as // $dbname = marketingcompany; // $hostname=localhost; i had the same problem you are having and for some reason which i still don't understand, the solution i proposed above worked. i don't think this is the correct way to solve this. but, for now (it was a project for a class) i'll live with it. gregory Alexey Lysenkov [EMAIL PROTECTED] - 12/18/02 10:49 AM Warning: MySQL Connection Failed: Access denied for user: 'tmc@localhost' (Using password: YES) in e:\~~~\~~~\apache\website\~~~\testdb.php on line 8 The guy at the support says, that everybody else can connect no problems, sent me the code, which I copy-pasted and I still have this error. :(( Bastian Vogt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, leave out the @, and give us the error message. @ suppresses error messages of any function. HTH, Bastian -- 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