How to fix this security issue on MySQL?

[!!] User '@localhost' is an anonymous account.

  • 1
    Remove the user?
    – tombom
    Feb 3, 2016 at 14:55

1 Answer 1


Do you want to remove the anon users? You can just use DROP USER to remove them. They shouldn't have any special privileges, as stated in the MySQL Docs and should not be a major problem as they're only in the localhost.

If, even removing, you still can login or something, check out this other question.

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