Pages

Sunday, February 23, 2014

can't access phpmyadmin mysql window after changing password for root in xampp (linux).


If you have ‌installed xampp/lampp on your linux system and changed the password for your root you will be no longer going to access your mysql window in phpmyadmin. It happens because phpmyadmin has a config file (config.inc.php) which do not update automatically after changing password for root like windows's xampp. so it will show you the following error.

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.

to fix this error you need to go to the phpmyadmin directory under the lampp/xampp

and edit the config.inc.php

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

and its done.

posted by honeyonsys

No comments:

About Me

Hi,My name is Harish Kumar.I am a web developer by profession.I am working in the same field since 2008. About my skills i am proficient in HTML,CSS,JAVASCRIPT/JQUERY/ ANGULAR,PHP,MYSQL,APACHE,LINUXAJAX, REST,etc...