Troubles to get connected to mysql

[FONT=Arial]I ran the script bellow :

<html>
<head>
<title></title>
</head>
<body>
<?php
$test = mysql_connect(“localhost”, “root@localhost”, “password which was configured on config.inc.php”);
print “$test”;
?>
</body>
</html>

…and the outcome has been the error message :

Warning: mysql_connect() [function.mysql-connect]:
Access denied for user ‘root@localhost’@‘localhost’ (using password: YES) in
c:\wamp\www\count\mysql_php_connection.php on line 8

The prompt gives me root@localhost and localhost as username and server ;
I´ve not clearly understood what is going on ;
So please if someone could explain what is wrong I would appreciate very much ;
Thank you all for your attention

c:/wamp/mysql/bin/mysql.exe Ver 14.7 Distrib 4.1.10a, for Win95/Win98 (i32)

mysql> \s

Connection id: 153
Current database:
Current user: root@localhost
SSL: Not in use
Using delimiter: ;
Server version: 4.1.10a-nt
Protocol version: 10
Connection: localhost via TCP/IP
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
TCP port: 3306
Uptime: 6 hours 30 min 26 sec
----------------------------------------------------------------------------------------------------------------[/FONT]**