【发布时间】:2023-03-29 14:17:02
【问题描述】:
我最近安装了 xampp v3.2.2.start apache 和 mysql,当我尝试访问 php 我的管理员时出现错误
MySQL said: Documentation
#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).
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.
Retry to connect
我做了以下更改 更新 config.inc.php 改变
`$cfg['Servers'][$i]['controluser'] = 'pma' to $cfg['Servers'][$i]['controluser'] = 'root';`
和
$cfg['Servers'][$i]['host'] = '127.0.0.1'
到
$cfg['Servers'][$i]['host'] = 'localhost:8080';
删除ib_logfile0文件和ib_logfile重新启动apache..但仍然是同样的错误。请帮助我
【问题讨论】:
-
Mysql 没有在 8080 端口运行..
-
@Philipp 谢谢你的命令,所以我有 chenge 端口?来自 httpd 文件
-
不行,在config.inc.php里面,你得用3306
标签: php mysql apache phpmyadmin