因断电导致mysql ibdata_mysq 因断电而导致的错误

这篇博客详细记录了在MySQL启动时遇到因断电造成ibdata1文件损坏的问题,包括错误日志的分析和解决方法。内容涉及到InnoDB存储引擎初始化失败,提示无法打开或创建系统表空间,建议检查my.cnf配置并移除可能的零填充ibdata文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2015-10-12 10:48:10 7300 [Note] Plugin 'FEDERATED' is disabled.

2015-10-12 10:48:10 2080 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-10-12 10:48:10 7300 [Note] InnoDB: Using atomics to ref count buffer pool pages

2015-10-12 10:48:10 7300 [Note] InnoDB: The InnoDB memory heap is disabled

2015-10-12 10:48:10 7300 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions

2015-10-12 10:48:10 7300 [Note] InnoDB: Memory barrier is not used

2015-10-12 10:48:10 7300 [Note] InnoDB: Compressed tables use zlib 1.2.3

2015-10-12 10:48:10 7300 [Note] InnoDB: Not using CPU crc32 instructions

2015-10-12 10:48:10 7300 [Note] InnoDB: Initializing buffer pool, size = 16.0M

2015-10-12 10:48:10 7300 [Note] InnoDB: Completed initialization of buffer pool

2015-10-12 10:48:10 7300 [Note] InnoDB: Restoring page 0 of tablespace 0

2015-10-12 10:48:10 7300 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0

2015-10-12 10:48:10 7300 [ERROR] InnoDB: space header page consists of zero bytes in data file C:\xampp\mysql\data\ibdata1

2015-10-12 10:48:10 7300 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!

2015-10-12 10:48:10 7300 [ERROR] Plugin'InnoDB'init function returned error.

2015-10-12 10:48:10 7300 [ERROR] Plugin'InnoDB'registration as a STORAGE ENGINE failed.

2015-10-12 10:48:10 7300 [ERROR] Unknown/unsupported storage engine: InnoDB

2015-10-12 10:48:10 7300 [ERROR] Aborting

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值