I accidentally deleted the records from the mysql.user table on my mysql server. I didn't flush the privileges yet so I have the root privilege.

Is there a way to recover the table or to create the table from current privileges in memory?

(it's mysql 5 ubuntu 11.04)

  • Did you have binary logs enabled ??? If so, do you have all binary logs from the beginning ??? Jul 17, 2011 at 19:59

1 Answer 1


I'm afraid not. You're going to need to restore from backup.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.