Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
一旦启动phpmyadmin XAMPP,MySQL就会停止_Php_Html_Mysql_Phpmyadmin_Xampp - Fatal编程技术网

一旦启动phpmyadmin XAMPP,MySQL就会停止

一旦启动phpmyadmin XAMPP,MySQL就会停止,php,html,mysql,phpmyadmin,xampp,Php,Html,Mysql,Phpmyadmin,Xampp,我在XAMPP中遇到的问题已经有很长一段时间了,MySQL启动后很短一段时间就停止了。由于这个错误,我重新安装了XAMPP两次。在最后一次重新安装之后,我终于希望它现在可以工作了。它已经工作了大约一周,今天也出现了同样的错误。现在,我发现可以通过以管理员权限打开XAMPP并在XAMPP Shell中输入命令mysqld--skip grant tables来自动启动MySQL。该命令实际上只停止phpmyadmin的表。可能是表格有错误。然后我将MySQL作为Windows服务安装以进行测试,并

我在XAMPP中遇到的问题已经有很长一段时间了,MySQL启动后很短一段时间就停止了。由于这个错误,我重新安装了XAMPP两次。在最后一次重新安装之后,我终于希望它现在可以工作了。它已经工作了大约一周,今天也出现了同样的错误。现在,我发现可以通过以管理员权限打开XAMPP并在XAMPP Shell中输入命令mysqld
--skip grant tables
来自动启动MySQL。该命令实际上只停止phpmyadmin的表。可能是表格有错误。然后我将MySQL作为Windows服务安装以进行测试,并发现MySQL可以在没有问题/命令输入的情况下启动。但是,如果您想调用phpmyadmin,phpmyadmin上会出现一条错误消息,MySQL会自动停止。也许有人能解决这个问题

phpmyadmin错误消息:

The connection could not be established due to invalid settings.
  mysqli :: real_connect (): (HY000 / 2002): A connection could not be established because the target computer refused to connect.
  Connection for the control user, as specified in your configuration, has failed.
  mysqli :: real_connect (): (HY000 / 2002): A connection could not be established because the target computer refused to connect.
  phpMyAdmin tried to connect to the MySQL server and the connection was rejected. You should check your host, user name and password settings in your config.inc.php and make sure that they correspond to the information you received from the administrator.

我想我能找到虫子。正如我所怀疑的,这可能是因为一张桌子坏了。现在,我们再次检查了XAMPP错误日志,发现了以下错误

2020-06-30 16:06:09 0 [ERROR] mysqld.exe: Table '. \ Mysql \ db' is marked as crashed and last (automatic?) Repair failed
2020-06-30 16:06:09 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table '. \ Mysql \ db' is marked as crashed and last (automatic?) Repair failed
2020-06-30 16:06:09 0 [ERROR] aborting

意味着你必须修理桌子。刚刚又查了一遍。我想我能解决这个问题。

我想我能找到bug。正如我所怀疑的,这可能是因为一张桌子坏了。现在,我们再次检查了XAMPP错误日志,发现了以下错误

2020-06-30 16:06:09 0 [ERROR] mysqld.exe: Table '. \ Mysql \ db' is marked as crashed and last (automatic?) Repair failed
2020-06-30 16:06:09 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table '. \ Mysql \ db' is marked as crashed and last (automatic?) Repair failed
2020-06-30 16:06:09 0 [ERROR] aborting

意味着你必须修理桌子。刚刚又查了一遍。我想可以解决这个问题。

出现的错误消息到底是什么?有人知道吗?没有,不幸的是,我的端口在ini文件和MySQL的主端口设置中都是从开始到3307。我不知道是否还是因为伊托克。您是否已将端口添加到config.inc.php文件中的ip地址,如中所示?出现的错误消息是什么?有人知道吗?没有,不幸的是,也没有(我认为)我的端口在ini文件和MySQL的主端口设置中从开始到3307。我不知道是否还是因为伊托克。是否已将端口添加到config.inc.php文件中的ip地址,如中所示?