Topic: Error: Incorrect key file for table 'users' after upgrade to MySQL 5.1
After upgrading from MySQL 5.0.x to 5.1.50 I have the following problem: Incorrect key file for table 'users'; try to repair it (Errno: 1034).
After Googling a bit I found out to run "REPAIR TABLE users" from the command line. However, this doesn't work:
mysql> repair table users;
+-------------+--------+----------+--------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+-------------+--------+----------+--------------------------------------------------------+
| punbb.users | repair | Error | Incorrect key file for table 'users'; try to repair it |
| punbb.users | repair | error | Corrupt |
+-------------+--------+----------+--------------------------------------------------------+
2 rows in set (0.00 sec)
Any ideas?