Access to MySQL denied
| From: | Kirill Safarov | Date: | Fri, 26 Oct 2001 08:48:56 +0000 |
| Subject: | Access to MySQL denied | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-13741@lists.php.net to get a copy of this message | ||
I cannot connect to MySQL database located at the webhost. The command:
$link = mysql_connect('hostname:3306','username','password') or die
("Could
not connect");
(with the proper hostname of course) returns this error message:
MySQL Connection Failed: Access denied for user:
'username@lsh101.siteprotect.com' (Using password: YES)
Of course, it works perfectly fine on my home computer, so I guess it must
have something to do with the configuration of PHP (or, possibly, MySQL?)
Can anyone tell me what's going on?
Thanks,
Kirill :)