Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpMyAdmin - can't connect - invalid setings - ever since I added a root password - locked out

I run XAMPP, a few days back i had set up a password for the root password through phpmyadmin I am not able to access phpMyAdmin ever since that moment

I followed help on this link but everything seems fine there (in config.inc.php). I even tried unistalling xampp fully, restarting windows and then reinstalling xampp, but still pointing to localhost/phpmyadmin I get the following error

MySQL said:  Cannot connect: invalid settings.  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.

I Also tried to reset root password through mysqld.bat as given on mysql's website help but to no avail

Please Help! Here's a screenshot describing the situation: enter image description here

like image 572
OrangeRind Avatar asked Aug 14 '09 07:08

OrangeRind


People also ask

Why I Cannot connect to phpMyAdmin?

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 is the password for root phpMyAdmin account?

Open phpMyAdmin and select the SQL tab. Then type this command: SET PASSWORD FOR 'root'@'localhost' = PASSWORD('your_root_password');


1 Answers

Go inside your phpMyAdmin directory inside XAMPP installation folder. There will be a file called config.inc.php. Inside that file, find this line:

$cfg['Servers'][$i]['password'] = ''; 

you must make sure that this field has your mysql root password (the one that you set).

like image 148
Prasanna Raghu Avatar answered Sep 18 '22 01:09

Prasanna Raghu