关于mysql安全

修改root用户密码:

update mysql.user set password=password('new_passwd') 
where user='root';

flush privileges;
原文地址:https://www.cnblogs.com/shaoyikai/p/4191706.html