Error with phpmyadmin

hi all,

bin tryin to write some php script using wampserver and following kevin yanks book,but wen i tried phpmyadmin this error keeps showing up

MySQL said:

#1045 - Access denied for user ‘root’@‘localhost’ (using password: NO)

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server

what am i doing wrong,i’ve tried all i could.
someone pls help

thanks joool
but i’ve tried doing that and am still getting the same problem so,i guess its either am using wrong syntax or writing in wrong file(php.ini or phpmyadmin.config)which i’ve used both.
can u pls put me through it step by step.


You have setup PHPMyAdmin to connect to the MySQL server at localhost using username root but not using any password. MySQL doesn’t accept the connection. This means that the user root do infact have a password setup for it in MySQL.

What you need to do is to configure PHPMyAdmin with the correct username och password combination.