Anonymous MySQL accounts allow clients to connect to the server
without specifying a user name. To remove anonymous accounts,
connect to the server as the MySQL root user to access the mysql
database, then issue the following statements:
mysql> select user,host FROM user WHERE User = '';
+------+----------------------+
| user |
host
|
+------+----------------------+
| |
localhost
|
| | mk-myacct-dbmaster-1 |
+------+----------------------+
2 rows in set (0.00 sec)
mysql> DELETE FROM user WHERE User = '';
Query OK, 2 rows affected (0.00 sec)
mysql> flush privileges; …
[Read more]