Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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:

http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

share|improve this answer

Your Answer

 
discard

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