I have installed XAMPP 1.6.1 but when I am trying to run it's first CD example I am getting this error XAMPP error - Warning: mysql_connect() [function.mysql-connect] Code (markup): Which ofcourse means that it is not able to connect to DB but mysql is running and I have not done anything with it. It should be having default root login and no password. Also phpmyadmin is giving "Access Denied" error - MySQL said: Documentation Cannot connect: invalid settings. Code (markup): with suggestion as - phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server. Code (markup): I searched on google and got this but couldn't understand what the guy did. Does anyone has any idea what to do ?
change the root password from http://localhost/xampp and then go to config.inc.php n set it to the new password
thanks for suggestion guys, I solved the problem by reinstalling xampp as it looked the easiest of solution.