mysql5.6之前需要账号的安全加固 从5.7开始就不需要了。 delete from mysql.user where user!='root' or host='localhost'; flush privilieges; drop database test; truncate table mysql.db; 转载于:https://www.cnblogs.com/liang545621/p/7518178.html