I have been locked out of my blog for weeks due to an obscure bug with WordPress and MySQL. Each time I attempted to access the admin side of WordPress I kept getting the following error message:
“You do not have sufficient permissions to access this page.”
I tried a million and one proposed solutions on the net, to no avail. It turns out this happened after an automatic upgrade of WordPress (from 3.0 to 3.0.1, I think) during which the installer attempted to upgrade the database tables. This is where I suspect things went awry. Here is the solution.
Table wp_usermeta is marked as crashed and last automatic repair failed
During one of my searches, I found out wp_usermeta was somehow corrupted. You can determine whether this is the case for you when clicking on the table on the left-hand side in PHPMyAdmin. You will see this message with no other explanation.
To solve this all you need to do is go back to the root page of your database by clicking it’s name on the sidebar. You will see a listing of all your tables. wp_usermeta will be listed and most likely will be showing a red bar with a message to the effect of “in use”.
Click the checkmark next to wp_usermeta and select “Repair” from the “With Selected:” drop-down.
Don’t ask me what repair does or how WordPress managed to screw up this way, I just hope this helps anyone out there finding themselves locked out over night.
Let me know!

Thank you!!! This was exactly my problem. The manual repair worked perfectly!!
It worked! Thanks for saving me some time!
thx – solved my problem too!
thank YOU !!!!