1、修改root密码 set password for root@localhost = password('root') flush privileges; -- 刷新MySQL权限 转载于:https://www.cnblogs.com/Sophia-zly/p/7783072.html