Phpmyadmin不在xampp中工作

Phpmyadmin不在xampp中工作,php,mysql,apache,phpmyadmin,Php,Mysql,Apache,Phpmyadmin,我最近安装了xampp v3.2.2。当我尝试访问php我的管理员时,我遇到了一个错误,请启动apache和mysql 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 co

我最近安装了xampp v3.2.2。当我尝试访问php我的管理员时,我遇到了一个错误,请启动apache和mysql

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 改变


删除
ib_logfile0
文件并
ib_logfile
重新启动apache..但仍然存在相同的错误。请帮助我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在端口
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, 希望它能帮助像我这样被困在这个问题上的人


  • 以下步骤对我有效:

  • 转到MySQL的数据文件夹(在使用默认安装的windows上,您应该在路径C:\xampp\MySQL\data上找到)

  • 备份日志文件并删除它们:备份这两个文件ib_logfile0和ib_logfile1(请注意,它们是在InnoDB运行时创建的,删除它们将解决您最可能解决的问题,尽管如此,我建议您在其他地方复制上述文件,以防删除无法解决问题。 现在从原始目录xampp\mysql\data中删除它们

  • 重启MySQL和Apache, 希望它能帮助像我这样被困在这个问题上的人


  • 我面临同样的问题,因为我有变更文件

    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服务


    希望这能对您有所帮助。

    我也遇到过同样的问题,因为我有更改文件

    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'
    
    很好,很好


    谢谢!

    我已经在端口3333上运行了MYSQL,它将更改config.inc.php文件中的端口

    $cfg['Servers'][$i]['host'] = '127.0.0.1' 
    
    to   
    
    $cfg['Servers'][$i]['host'] = '127.0.0.1:3333'
    
    很好,很好


    谢谢!

    Mysql没有在8080端口上运行。@Philipp谢谢你的命令,所以我有chenge端口?从httpd文件否,在config.inc.php中,你必须使用3306Mysql没有在8080端口上运行。@Philipp谢谢你的命令,所以我有chenge端口?从httpd文件否,在config.inc.php中,你必须使用3306端口