zoukankan      html  css  js  c++  java
  • 记mysql 启动不了了的解决方法

    系统: centos7

    本地的环境,mysql启动不了,查看 /var/log/mysqld.log 有以下内容

    2018-12-24T08:05:38.090527Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2018-12-24T08:05:38.092747Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.24) starting as process 8111 ...
    2018-12-24T08:05:38.097352Z 0 [Note] InnoDB: PUNCH HOLE support available
    2018-12-24T08:05:38.097394Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
    2018-12-24T08:05:38.097403Z 0 [Note] InnoDB: Uses event mutexes
    2018-12-24T08:05:38.097409Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
    2018-12-24T08:05:38.097414Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
    2018-12-24T08:05:38.097419Z 0 [Note] InnoDB: Using Linux native AIO
    2018-12-24T08:05:38.097778Z 0 [Note] InnoDB: Number of pools: 1
    2018-12-24T08:05:38.097922Z 0 [Note] InnoDB: Not using CPU crc32 instructions
    2018-12-24T08:05:38.099800Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
    2018-12-24T08:05:38.111257Z 0 [Note] InnoDB: Completed initialization of buffer pool
    2018-12-24T08:05:38.114082Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
    2018-12-24T08:05:38.168814Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
    2018-12-24T08:05:38.174135Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 211934516 and the end 211934208.
    2018-12-24T08:05:38.174251Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
    2018-12-24T08:05:39.877511Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
    2018-12-24T08:05:39.877609Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    2018-12-24T08:05:39.877631Z 0 [ERROR] Failed to initialize builtin plugins.
    2018-12-24T08:05:39.877646Z 0 [ERROR] Aborting
    

    参考 mysql 启动不了了 中写的
    MySQL: Failed Registration of InnoDB as a Storage Engine

    Rename or move both the ./ib_logfile0 and ./ib_logfile1 files, and then start the MySQL server.
    

    进入 /var/lib/mysql 重命名或者移除 ./ib_logfile0 和 ./ib_logfile1 文件,最后启动mysql服务器

    如果数据库中 表查询或者更新无法进行,可以尝试使用 mysql的客户端工具(如:phpmyadmin) 导出这个数据库文件,删除这个个数据库的表,然后重新导入刚才导出的数据库文件

  • 相关阅读:
    【LoadRunner-Vuser Generator】录制脚本设置Recording Options
    【LoadRunner-内部结构】
    【LoadRunner-工作过程】
    单片机上内存管理(重定义malloc free)的实现
    stm32模块的初始化顺序要求的更改设值
    [CAN波形分析] 一次CAN波形分析之旅
    w5500调试小记
    keil mdk中save和load指令,在调试中比较有用,以及hex格式的学习
    PHP启用session后抛 session_start(): open(/var/lib/php/session/sess_... 的解决办法
    brew 方式安装的php,关闭与重启----mac启动,关闭php-fpm方式
  • 原文地址:https://www.cnblogs.com/fsong/p/10169692.html
Copyright © 2011-2022 走看看