Whenever I start MySQL server 5.1.33 or 5.1.40 (developers build) and try to read from one table the server crashes with this message in log files:
InnoDB: Error: (1500) Couldn't read the MAX(userFK) autoinc value from the index (PRIMARY).
I've upgraded to 5.1.40 per http://bugs.mysql.com/bug.php?id=44030 but I still can't read from the table, so I cannot recover it. I've started the server with innodb_force_recovery=1 but that didn't help either, REPAIR, CHECK or SELECT or any other command just crashes the server.
How can I repair the table so that it is readable again?