note 52714 rejected from function.mysql-connect by nlopess
| From: | nlopess@php.net | Date: | Tue, 10 May 2005 20:04:45 +0000 |
| Subject: | note 52714 rejected from function.mysql-connect by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89228@lists.php.net to get a copy of this message | ||
Note Submitter: necromor at tlen dot pl
----
I have problem with MySQL 4.0.24
I want to connet to database using:
$host= "localhost";
$user= "user";
$haslo= "haslo";
$db = mysql_connect($host, $user, $haslo)
or die (mysql_error());
and I get an error:
Access denied for user: 'user@localhost' (Using password: YES)
I'm sure that the $user and $haslo I use are correct cause I can connect using them to
phpMyAdmin 2.6.2-rc1