[英]Phpmyadmin is not working in xampp
我最近安装了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
重新启动ib_logfile
..但仍然是相同的错误。请帮助我
我遇到了同样的问题,因为我有更改文件
xampp / mysql / bin / my.ini
我通过以下更改解决了// //应该默认为3306。
[客户]
# password = your_password port = 3307 **//it should be 3306 default.** socket = "C:/xampp/mysql/mysql.sock" # The MySQL server [mysqld] port= 3307 **//it should be 3306 default.** socket = "C:/xampp/mysql/mysql.sock"
在xampp中重新启动apache和mysql服务
希望这会帮助你。
我已经在端口3333上运行MYSQL,它将更改config.inc.php文件内的端口。
$cfg['Servers'][$i]['host'] = '127.0.0.1'
to
$cfg['Servers'][$i]['host'] = '127.0.0.1:3333'
很好,很好!
谢谢!
MySQL在端口3306
而不是端口8080
,因此您必须在config.inc.php
更改端口。
$cfg['Servers'][$i]['host'] = '127.0.0.1:8080' to $cfg['Servers'][$i]['host'] = '127.0.0.1:3306'
以下步骤对我有用:
转到MySQL的数据文件夹(在使用默认安装的Windows上,您应该在此路径C:\\ xampp \\ mysql \\ data上找到)
备份日志文件并删除它们:制作这两个文件的备份副本ib_logfile0和ib_logfile1(请注意,它们是在InnoDB运行时创建的,删除它们将解决您最有可能解决的问题,尽管如此,我还是建议您复制上述文件文件,以防万一删除不能解决问题,现在从原始目录xampp \\ mysql \\ data删除它们
重新启动MySQL和Apache,希望它能对像我这样陷入困境的人有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.