When I was trying to connect my phpmyadmin on my XAMPP, it gave an error:
#2002 - No connection could be made because the target m
If your operating system is Windows 7:
If your operating system is Linux (Ubuntu):
Good Luck
Assuming you're trying to connect to http://localhost/phpmyadmin.
From XAMPP control panel start both the Apache module and the MySQL module.
Go to :
xampp/phpmyadmin/config.inc.php
open the file config.inc.php Go to line no:31
$cfg['Servers'][$i]['controluser'] = 'pma';
Change the line to :
$cfg['Servers'][$i]['controluser'] = 'root';
Restart your system.
Reference