Can';t运行XAMPP-MySql

Can';t运行XAMPP-MySql,xampp,Xampp,当我尝试启动XAMPP-MySql时,它不起作用。 我已经尝试过修复它,但是我找不到任何实际的解决方案,我希望你能找到它的问题所在 日志如下: 2019-06-26 9:08:35 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2019-06-26 9:08:35 0 [Note] InnoDB: Uses event mutexes 2019-06-26 9:08:35 0 [Note] I

当我尝试启动XAMPP-MySql时,它不起作用。 我已经尝试过修复它,但是我找不到任何实际的解决方案,我希望你能找到它的问题所在

日志如下:

2019-06-26  9:08:35 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-06-26  9:08:35 0 [Note] InnoDB: Uses event mutexes
2019-06-26  9:08:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-06-26  9:08:35 0 [Note] InnoDB: Number of pools: 1
2019-06-26  9:08:35 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-06-26  9:08:35 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2019-06-26  9:08:35 0 [Note] InnoDB: Completed initialization of buffer pool
2019-06-26  9:08:35 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibdata1' size to 10 MB. Physically writing the file full; Please wait ...
2019-06-26  9:08:35 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibdata1' size is now 10 MB.
2019-06-26  9:08:35 0 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile101 size to 5242880 bytes
2019-06-26  9:08:35 0 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile1 size to 5242880 bytes
2019-06-26  9:08:36 0 [Note] InnoDB: Renaming log file C:\xampp\mysql\data\ib_logfile101 to C:\xampp\mysql\data\ib_logfile0
2019-06-26  9:08:36 0 [Note] InnoDB: New log files created, LSN=45786
2019-06-26  9:08:36 0 [Note] InnoDB: Doublewrite buffer not found: creating new
2019-06-26  9:08:36 0 [Note] InnoDB: Doublewrite buffer created
2019-06-26  9:08:36 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-06-26  9:08:36 0 [Note] InnoDB: Creating foreign key constraint system tables.
2019-06-26  9:08:36 0 [Note] InnoDB: Creating tablespace and datafile system tables.
2019-06-26  9:08:36 0 [Note] InnoDB: Creating sys_virtual system tables.
2019-06-26  9:08:36 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-06-26  9:08:36 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-06-26  9:08:36 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-06-26  9:08:36 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2019-06-26  9:08:36 0 [Note] InnoDB: Waiting for purge to start
2019-06-26  9:08:36 0 [Note] InnoDB: 10.3.16 started; log sequence number 0; transaction id 7
2019-06-26  9:08:36 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-06-26  9:08:36 0 [Note] Server socket created on IP: '::'.
2019-06-26  9:08:36 0 [ERROR] mysqld.exe: Table '.\mysql\user' is marked as crashed and should be repaired
2019-06-26  9:08:36 0 [ERROR] mysqld.exe: Index for table '.\mysql\user' is corrupt; try to repair it
2019-06-26  9:08:36 0 [ERROR] Couldn't repair table: mysql.user
2019-06-26  9:08:36 0 [ERROR] Fatal error: Can't open and lock privilege tables: Index for table 'user' is corrupt; try to repair it

我只是通过再次删除和下载xampp进行了修复,有时从0重新开始是人们能找到的最好的解决方案。

该解决方案只是一个简单的解决方案

Copy From ...xampp/mysql/backup/... of all files and paste into .../xampp/mysql/data/  -> you will lost your data

Just copy the folder From ...xampp/mysql/backup/ & Paste into .../xampp/mysql/data/  -> this will help to run Mysql & existing database is working

从xampp/mysql/backup/复制所有文件和文件夹,并将其粘贴到xampp/mysql/data/。如果要求替换,请单击“全部替换”

,这是由于C:\xampp\mysql\data\mysql中的某些文件损坏所致

解决方案

  • 备份C:\xampp\mysql\data
  • 复制所有文件C:\xampp\mysql\backup
  • 粘贴并替换:C:\xampp\mysql\data中的现有文件,但ibdata1文件除外。
    离开ibdata1将有助于防止表不存在错误

  • 只需从my.ini编辑此行:

    );脚本可能消耗的最大内存量(128MB) ;
    内存限制=128M->选择您想要的大小。

    对我来说,我备份了数据文件夹,然后将文件和文件夹复制到/backup/to/data/中,服务成功启动。我不必从备份的数据中复制任何内容,除了ibdata1,没有它,我会抱怨表不存在。

    您使用的是什么XAMPP?这是在您更改密码时发生的吗?尤其是“root”?像你一样,我重新安装了,但它再次发生!请参阅错误描述是否有人对此进行解释?谢谢,这对我来说很有效,但我只从备份中复制了文件夹,因为当我从备份中复制并粘贴所有文件夹时,mysql工作正常,但数据库中的数据丢失。我建议大家尝试一下Laragon功能更强大,您将丢失数据库。检查Tobiloba的答案()所有模式都丢失了,这使得xampp可以工作,但所有数据都丢失了!当我这么做的时候,另一个问题出现在我使用Wordpress时,它要求我重新安装Wordpress。这一个对我有效。与其他答案相比,这个答案有着最清晰和彻底的解释。谢谢你,你是救命恩人,这是我唯一尝试过的有效方法。谢谢。第三点更重要:)