XAMPP Solution: Connection for controluser as defined in your configuration failed

XAMPP Solution: Connection for controluser as defined in your configuration failed. How to solve control user configuration failed error in PHP/Mysql, Xampp.

Recently making a *AMP (apache, MySQL and PHP) stack local-server on my machine using Windows 7. XAMPP is a bundle of multiple things including phpMyAdmin – a database administration tool which is web based. While accessing phpMyAdmin we faced an error saying “Connection for controluser as defined in your configuration failed.” A detailed Error listed below.

#2002 – No connection could be made because the target machine actively refused it.

The server is not responding (or the local server’s socket is not correctly configured).

Connection for controluser as defined in your configuration failed.

Connection for controluser phpmyadmin twoclock

Connection for controluser phpmyadmin

How to Fix the Problem
Controluser as Defined Configuration Failed.

Go to your Directory in C:/xampp/  and Navigate to the phpMyAdmin open the file config.inc.php which can be found in the following path:

../xampp/phpmyadmin/config.inc.php

Under /* User for advanced features */, Replace

$cfg['Servers'][$i]['controluser'] = 'pma';

With

$cfg['Servers'][$i]['controluser'] = 'root';

Restart Apache & MySQL and phpMyAdmin should start working.

After restarting Apache & MySQL if the error persist, you need to end the process directly from Task Manager. Search for the process httpd.exe and mysqld.exe. Then open the xampp control panel again and start the Apache and MySQL.

httpd-mysqld-apache-mysql-processes-twoclock

 

Leave a Reply

Your email address will not be published. Required fields are marked *