problem in creating a connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux