When I was trying to connect my phpmyadmin
on my XAMPP
, it gave an error:
#2002 - No connection could be made because the target machine actively refused it.
Can any help me to resolve it?
When I was trying to connect my phpmyadmin
on my XAMPP
, it gave an error:
#2002 - No connection could be made because the target machine actively refused it.
Can any help me to resolve it?
If your operating system is Windows 7:
If your operating system is Linux (Ubuntu):
Good Luck
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
Please try changing connect_type
in your config.inc.php
from 'tcp' to 'http'. This file exists in the phpMyAdmin top level directory.
Existing line looks like this:
$cfg['Servers'][$i]['connect_type'] = 'tcp';
New line should be looking like this:
$cfg['Servers'][$i]['connect_type'] = 'http';
Assuming you're trying to connect to http://localhost/phpmyadmin.
From XAMPP control panel start both the Apache module and the MySQL module.
Sometimes if you delete your temporary files in windows in
C:\Windows\Temp
and
C:\Users\YourUser\AppData\Local\Temp
it works.
Please go to c:\xampp\tmp
folder and delete all the files.
It works for me may help you.
Instead of localhost
, type this in your address bar localhost:<PORT>
(e.g. localhost:88
)
Go to
C:\Users\YourUser\AppData\Local\Temp
Delete all the files.It will work.
Open xampp control panel and click on config in front of MySQL after that open my.ini file and replace 3306 to another port like 3307 in all file. it will change your MySQL port which was conflicting with another application.