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
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.