提问者:小点点

当我打开XAMPP并单击MySQL start按钮时,它给我一个错误。 我刚开始做,但现在不行了


当我打开XAMPP并单击MySQL start按钮时,它开始一秒钟,然后结束并给我一个错误。 我以前就开始过,但现在不行了。

    enter code here

14:28:03  [mysql]   Status change detected: stopped
14:28:03  [mysql]   Error: MySQL shutdown unexpectedly.
14:28:03  [mysql]   This may be due to a blocked port, missing dependencies, 
14:28:03  [mysql]   improper privileges, a crash, or a shutdown by another method.
14:28:03  [mysql]   Press the Logs button to view error logs and check
14:28:03  [mysql]   the Windows Event Viewer for more clues
14:28:03  [mysql]   If you need more help, copy and post this
14:28:03  [mysql]   entire log window on the forums

Here is the contents of the error log:

2020-06-16 14:16:16 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-06-16 14:16:16 0 [Note] InnoDB: Uses event mutexes
2020-06-16 14:16:16 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-06-16 14:16:16 0 [Note] InnoDB: Number of pools: 1
2020-06-16 14:16:16 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-06-16 14:16:16 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-06-16 14:16:16 0 [Note] InnoDB: Completed initialization of buffer pool
2020-06-16 14:16:16 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-06-16 14:16:16 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-06-16 14:16:16 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-06-16 14:16:16 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-06-16 14:16:16 0 [Note] InnoDB: Waiting for purge to start
2020-06-16 14:16:16 0 [Note] InnoDB: 10.4.11 started; log sequence number 374114; transaction id 536
2020-06-16 14:16:16 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-06-16 14:16:16 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-06-16 14:16:16 0 [Note] InnoDB: Buffer pool(s) load completed at 200616 14:16:16
2020-06-16 14:16:16 0 [Note] Server socket created on IP: '::'.
InnoDB: using atomic writes.
2020-06-16 14:28:00 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created!
2020-06-16 14:28:00 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-06-16 14:28:00 0 [Note] InnoDB: Uses event mutexes
2020-06-16 14:28:00 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-06-16 14:28:00 0 [Note] InnoDB: Number of pools: 1
2020-06-16 14:28:00 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-06-16 14:28:00 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-06-16 14:28:00 0 [Note] InnoDB: Completed initialization of buffer pool
2020-06-16 14:28:00 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibdata1' size to 10 MB. Physically writing the file full; Please wait ...
2020-06-16 14:28:00 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibdata1' size is now 10 MB.
2020-06-16 14:28:00 0 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile101 size to 5242880 bytes
2020-06-16 14:28:00 0 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile1 size to 5242880 bytes
2020-06-16 14:28:00 0 [Note] InnoDB: Renaming log file C:\xampp\mysql\data\ib_logfile101 to C:\xampp\mysql\data\ib_logfile0
2020-06-16 14:28:00 0 [Note] InnoDB: New log files created, LSN=11452
2020-06-16 14:28:00 0 [Note] InnoDB: Doublewrite buffer not found: creating new
2020-06-16 14:28:00 0 [Note] InnoDB: Doublewrite buffer created
2020-06-16 14:28:00 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-06-16 14:28:00 0 [Note] InnoDB: Creating foreign key constraint system tables.
2020-06-16 14:28:00 0 [Note] InnoDB: Creating tablespace and datafile system tables.
2020-06-16 14:28:00 0 [Note] InnoDB: Creating sys_virtual system tables.
2020-06-16 14:28:00 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-06-16 14:28:00 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-06-16 14:28:00 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-06-16 14:28:00 0 [Note] InnoDB: Waiting for purge to start
2020-06-16 14:28:00 0 [Note] InnoDB: 10.4.11 started; log sequence number 0; transaction id 7
2020-06-16 14:28:00 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-06-16 14:28:00 0 [Note] Server socket created on IP: '::'.

我在stackoverflow中查找了类似的问题,并且尝试删除mysql\data目录中的ibdata1文件,但是什么也没有发生。 谁能帮帮我吗?

我已将端口更改为33060,并重新启动XAMPP,但仍然无法工作。


共1个答案

匿名用户

转到C:\xampp\mysql\

Windows具有还原以前版本的文件夹的功能。

右键单击数据文件夹,然后转到还原以前的版本。

将其恢复到正常工作的时间。

这帮了我。

但可能会由于还原而丢失某些表和配置。 并且您可能必须再次创建用户,授权和特权。

为了防止此类错误应用程序,您应该以管理员身份运行XAMPP。