zoukankan      html  css  js  c++  java
  • mysq 因断电而导致的错误

    问题来源:

    昨天断电,而我没有保存,导致出现以下问题:

    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:xamppmysqldataibdata1
    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

    解决办法:

    错误日志里已经告诉你了: C:xamppmysqldataibdata1 把这个下面的 ibdata1 和 ib_logfle0 ib_lofile1 删掉。

    如果,数据库损坏了,在这个目录下,把数据库文件删掉删掉,然后重新建立即可。

    以上方法 同样适用于 windows 和linux 

  • 相关阅读:
    Spring+redis整合遇到的问题集以及注意事项
    Map源码学习之HashMap
    评分---五星好评
    下拉复选框
    倒计时按钮—获取手机验证码按钮
    input上传文件个数控制
    ajax请求完之前的loading加载
    获取浏览器滚动距离
    获取浏览器可视区域宽高
    获取元素尺寸宽高
  • 原文地址:https://www.cnblogs.com/hans-201506/p/4872930.html
Copyright © 2011-2022 走看看