InnoDB:文件(未知):'read' 返回 OS 错误 0

InnoDB: File (unknown): 'read' returned OS error 0

我需要一些关于 xampp 3.2.1 中 MySql 的帮助。 MySql 服务无法启动,我找不到原因,因为错误日志文件报告它无法从 'unknown file' 中读取,只能从 returns 中读取错误 0。 我不知道那是什么意思,因为它基本上是说在尝试读取未知文件时出现 0 错误。 这是错误日志:

2015-01-20 10:36:12 760 [Note] Plugin 'FEDERATED' is disabled.
2015-01-20 10:36:12 574 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.
2015-01-20 10:36:12 760 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-01-20 10:36:12 760 [Note] InnoDB: The InnoDB memory heap is disabled
2015-01-20 10:36:12 760 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-01-20 10:36:12 760 [Note] InnoDB: Memory barrier is not used
2015-01-20 10:36:12 760 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-01-20 10:36:12 760 [Note] InnoDB: Not using CPU crc32 instructions
2015-01-20 10:36:12 760 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-01-20 10:36:12 760 [Note] InnoDB: Completed initialization of buffer pool
2015-01-20 10:36:12 760 [Note] InnoDB: Highest supported file format is Barracuda.
2015-01-20 10:36:12 760 [Note] InnoDB: The log sequence numbers 1665234 and 1665234 in ibdata files do not match the log sequence number 131153885 in the ib_logfiles!
2015-01-20 10:36:12 760 [Note] InnoDB: Database was not shutdown normally!
2015-01-20 10:36:12 760 [Note] InnoDB: Starting crash recovery.
2015-01-20 10:36:12 760 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-01-20 10:36:12 760 [ERROR] InnoDB: File (unknown): 'read' returned OS error 0. Cannot continue operation

请帮忙。

我遇到了完全相同的问题 - 运行 与 XAMPP 相同的版本,它与您的问题大约同时开始发生。

试试这个。打开您的 XAMPP 目录并转到 XAMPP/mysql/Data

剪切所有文件(ibdata*、auto.cnf、mysql.pid)并将它们放在其他地方。

尝试启动 Mysql - 如果效果很好,如果效果不好,您可能需要做的是在日志中查看哪个数据库给您带来问题 - 并移动相应的文件夹.

幸运的话,这会解决你的问题 - 对我来说很管用!

这是一个不同的错误代码,但看看它是否有效。

通过“配置”打开MySQL配置文件—>“my.ini”。

插入 innodb_flush_method = normal

之间 innodb_lock_wait_timeout = 50## UTF 8 Settings

在 xampp 中再次开始 MySQL。

https://community.apachefriends.org/f/viewtopic.php?f=16&t=72437