让mysql数据库更安全

mysql -u root -p

mysql> DROP DATABASE test;
[删除test数据库]
mysql> DELETE FROM mysql.user WHERE user = '';  [删除匿名帐户]

mysql> FLUSH PRIVILEGES; [重载权限]