Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I accidentally removed access permissions of database mysql to the root user.

I'm now not able to create new databases, set permissions, etc.

What can I do to gain access again?

share|improve this question

This will result in interruption of service. Update the init file to contain the commands necessary to re-create the root user. The procedure is documented here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.