problem in creating a connection
| From: | devil_online | Date: | Fri, 27 Feb 2004 02:01:28 +0000 |
| Subject: | problem in creating a connection | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-33176@lists.php.net to get a copy of this message | ||
Hi, i use phpmyadmin I i cant conect to my database. I use this code:
<?
/**
* Connect to the mysql database.
*/
$conn = mysql_connect("localhost", "username", "PASSWORD") or
die(mysql_error());
mysql_select_db('test', $conn) or die(mysql_error());
?>
and it gives me this error:
Warning: mysql_connect(): Access denied for user: 'username@localhost'
(Using password: YES) in C:\Program Files\DzSoft\PHP Editor\php47F.tmp on
line 6
Access denied for user: 'username@localhost' (Using password: YES)
Anyone can help me please. thanks