note 52714 added to function.mysql-connect
| From: | necromor at tlen dot pl | Date: | Tue, 10 May 2005 18:26:17 +0000 |
| Subject: | note 52714 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89224@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52714
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52714&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52714&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52714&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52714&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52714&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52714&report=yes
Search -- http://master.php.net/manage/user-notes.php