MySQL allows entry without Password [duplicate]
Solution 1:
Those are anonymous users and, as such, don't need passwords. They are created by default on all installations. I'm not sure why it's done this way.
You can either set a password for them or remove them. From https://dev.mysql.com/doc/refman/5.6/en/default-privileges.html:
If you want to prevent clients from connecting as anonymous users without a password, you should either assign a password to each anonymous account or else remove the accounts.
Seems to be a duplicate of this one: MySQL 5.5.16 allows anonymous connections
Solution 2:
Use mysql_secure_installation
to remove anonymous users, test databases and also prevent remote connect using root
user.
http://dev.mysql.com/doc/refman/5.0/en/mysql-secure-installation.html