PHP MySQL本地主机连接问题

PHP MySQL本地主机连接问题,php,mysql,phpmyadmin,Php,Mysql,Phpmyadmin,我将默认端口从80更改为8080,但在运行localhost时,出现以下错误: Cannot connect: invalid settings. mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it. Connection for controluser as defined in your configuration f

我将默认端口从80更改为8080,但在运行localhost时,出现以下错误:

Cannot connect: invalid settings.
 mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.
 Connection for controluser as defined in your configuration failed.
 mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.
 phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Retry to connect

检查防火墙,为XAMPP/WAMPP应用程序添加输入/输出规则,并允许所有端口(启用复选框)

检查此线程,因为您的问题似乎类似:


一切都好

您使用什么来运行mysql数据库?WAMP?Mysql通过3306端口而不是80端口连接。80用于apache服务器Hello MaartenDev,我使用的是Xampphy Anik,抱歉,由于apache不是在3306启动的,所以我将端口更改为3307