5.7版本
进入数据库,use user;
update mysql.user set authentication_string=password(‘’) where user='’;
flush privileges;
systemctl restart mysql.service
5.7之下版本
update user set password=password(“") where user="”;
5.7版本
进入数据库,use user;
update mysql.user set authentication_string=password(‘’) where user='’;
flush privileges;
systemctl restart mysql.service
5.7之下版本
update user set password=password(“") where user="”;