Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

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 created a new mysql user with all the same privileges as the current 'root' user. For security reasons I thought why not create another user for this so people at least won't know the username of my super user.

I then dropped the root user.

Immediately my DB started throwing connection refused errors for all of my other users.

I quickly recreated the original 'root' user and everything magically started connecting again.

My question is then, is it possible to delete the root user in a MySQL database? And if so how?



All other security options are in place. We are not just securing our system by trying to remove the root user. We have some over zealous security people here and removing the MySQL root user was just an extra step.

I agree with @Pleun for the reasons I tried to remove it.

share|improve this question

migrated from Jul 24 '13 at 2:19

This question came from our site for professional and enthusiast programmers.

Security through obscurity is not security at all... – Platinum Azure Jul 23 '13 at 20:59
@PlatinumAzure : still it is a best practice to choose less common usernames for superusers. – Pleun Jul 23 '13 at 21:01
Were all your other users connecting as root? – Bill Karwin Jul 23 '13 at 21:01
@Pleun: On what grounds? – Platinum Azure Jul 23 '13 at 21:02
Just choose a really strong (long) password for your root user. That should be safe enough. – mata Jul 23 '13 at 21:18

Your Answer


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

Browse other questions tagged or ask your own question.