Ubuntu – How to reconfigure phptheadmin

Apache2MySQLphpmyadmin

Error: "http://localhost/phpmyadmin/index.php"  

Cannot connect: invalid settings.   
Connection for controluser as defined in your configuration failed.

I was using LAMPP with mysql password as root. Then I installed xampp on Ubuntu 15.04. After that I'm unable to access my phpmyadmin page.

I tried changing config file removing cookies but still the same error.

Best Answer

run the command:

sudo dpkg-reconfigure phpmyadmin

You need to reconfigure it because lamp and xampp run phpmyadmin in different ports. So, it is probably a port conflict. You can also open server.xml in your lampp and change the port no. which would be different from that of xampp. Then both MySQL (of xampp and lamp as well) will run.

Related Question