the MySQL service on local computer started and then stopped

前端 未结 24 3128
抹茶落季
抹茶落季 2020-11-30 21:59

the MySQL service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

Can anyone resol

24条回答
  •  渐次进展
    2020-11-30 22:54

    I had this issue after my database was working fine for long time. It turned out it was some data corruption.

    In the error log I had:

    2017-02-07T10:11:42.270567Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 44002250712 and the end 44002250240.
    2017-02-07T10:11:42.270606Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
    2017-02-07T10:11:42.577436Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
    2017-02-07T10:11:42.577470Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    2017-02-07T10:11:42.577484Z 0 [ERROR] Failed to initialize plugins.
    2017-02-07T10:11:42.577488Z 0 [ERROR] Aborting
    

    Then I had to delete the 2 ib_logfile* files, and it restarted again.

提交回复
热议问题