MySQL crash on startup

前端 未结 2 1555
后悔当初
后悔当初 2020-12-12 01:22

I\'m developing on my laptop with wamp and mysql is running fine from weeks. Today after 60 seconds after boot mysql crashes I and find the following error inside the log:

2条回答
  •  天命终不由人
    2020-12-12 02:17

    It was probably a corruption of the InnoDB data. I added

    innodb_force_recovery = 2
    

    to my.ini, restarted the DB and I was able to dump all the data and recover it.

    Be aware of using this, read the documentation before: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html

提交回复
热议问题