5

I see these when running MySQLTuner.pl:

-------- Security Recommendations  -------------------------------------------
[!!] User '@debian' has no password set.
[!!] User '@localhost' has no password set.
------------------------------------------------------------------------------
  • Is it a security hole?
  • How to fix it?

Thanks

RolandoMySQLDBA
  • 185,223
  • 33
  • 326
  • 536
alfish
  • 3,004
  • 7
  • 21
  • 18

1 Answers1

6

That is definite a security hole. That's because mysql was installed that way.

To remove those entries, please run these lines

DELETE FROM mysql.user WHERE user='' or password='';
FLUSH PRIVILEGES;

Here are three(3) past posts I wrote on how and why to do such cleanup of mysql.user and mysql.db

RolandoMySQLDBA
  • 185,223
  • 33
  • 326
  • 536