No connection could be made because the target mac

2019-01-08 00:33发布

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?

9条回答
贪生不怕死
2楼-- · 2019-01-08 01:28

Assuming you're trying to connect to http://localhost/phpmyadmin.

From XAMPP control panel start both the Apache module and the MySQL module.

查看更多
forever°为你锁心
3楼-- · 2019-01-08 01:33

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

查看更多
做自己的国王
4楼-- · 2019-01-08 01:36

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.

查看更多
登录 后发表回答