MAMP PRO crashes; MySQL will not start on reboot

后端 未结 2 1970
青春惊慌失措
青春惊慌失措 2021-01-01 03:53

Today at work my computer randomly froze/crashed. On reboot MAMP refuses to start mysql and I can\'t figure out why. There are definitely no other mysql processes running; I

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-01 04:35

    One of the pages in your ibdata1 file failed a checksum test as it was being read from disk, which causes MySQL to crash itself by design. They wouldn't want you to accidentally read data that was known to be corrupt, nor risk modifying any other data in an instance that's liable to corrupt it.

    You can read tips on recovering the remaining data here: Recovering Innodb table Corruption.

    The innodb_force_recovery might or might not be able to help. Any read of the corrupt page will cause the server to crash again. The errors suggest the corrupt page is in the change buffer, which is processed by a background thread immediately upon startup. innodb_force_recovery=4 or higher will prevent the change buffer from being read.

    It would probably be simpler, provided you have a backup of the database, to delete the ibdata1 file the ib_log* files, and other .ibd files, and then restore the backup. You can also replay binary logs for point-in-time recovery.

提交回复
热议问题