gpt4 book ai didi

php - Xampp mysql 错误 : MySQL shutdown unexpectedly

转载 作者:行者123 更新时间:2023-11-28 23:16:20 25 4
gpt4 key购买 nike

当我启动mysql时,出现以下错误:

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

然后,我检查 mysql_error.log:

    2017-05-03 17:39:39 202c InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in        future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
170503 17:39:39 [Note] InnoDB: Using mutexes to ref count buffer pool pages
170503 17:39:39 [Note] InnoDB: The InnoDB memory heap is disabled
170503 17:39:39 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
170503 17:39:39 [Note] InnoDB: Memory barrier is not used
170503 17:39:39 [Note] InnoDB: Compressed tables use zlib 1.2.3
170503 17:39:39 [Note] InnoDB: Not using CPU crc32 instructions
170503 17:39:39 [Note] InnoDB: Initializing buffer pool, size = 16.0M
170503 17:39:39 [Note] InnoDB: Completed initialization of buffer pool
170503 17:39:39 [Note] InnoDB: Highest supported file format is Barracuda.
170503 17:39:39 [Note] InnoDB: The log sequence numbers 0 and 0 in ibdata files do not match the log sequence number 1600674 in the ib_logfiles!
170503 17:39:39 [Note] InnoDB: Database was not shutdown normally!
170503 17:39:39 [Note] InnoDB: Starting crash recovery.
170503 17:39:39 [Note] InnoDB: Reading tablespace information from the .ibd files...
170503 17:39:39 [Note] InnoDB: Restoring possible half-written data pages
170503 17:39:39 [Note] InnoDB: from the doublewrite buffer...
170503 17:39:39 [Note] InnoDB: 128 rollback segment(s) are active.
170503 17:39:39 [Note] InnoDB: Waiting for purge to start
170503 17:39:40 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 1600674
170503 17:39:40 [Note] Plugin 'FEEDBACK' is disabled.
170503 17:39:40 [Note] Server socket created on IP: '::'.

最后,我将 xampp/mysql/backup 文件移动到 xampp/mysql/data 并再次运行 mysql。然后,它成功了!但我不知道为什么。是什么导致了这个问题。

希望有人替我解惑!

最佳答案

我在谷歌上搜索并尝试了所有方法,例如更改端口、删除文件、重新安装 xampp、将备份文件复制并粘贴到 mysql/data 文件夹,但没有任何效果。

我找到了这个问题的最佳解决方案。

解决方案:

  1. 转到 xampp/mysql/data 并备份此文件夹
  2. 删除下图中所有选中的文件 enter image description here
  3. 从 xampp/mysql/backup 复制下图中选定的文件并将其粘贴到 xampp/mysql/data 文件夹 enter image description here
  4. 现在重新启动您的 xampp 服务器,它将像以前一样运行。无需删除您的数据库或重新安装您的 xampp 服务器

关于php - Xampp mysql 错误 : MySQL shutdown unexpectedly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43757141/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com