Mysql 修改本地密码

第一步

update user set authentication_string=password(‘root’) where user=’root’ and host=’localhost’;

第二步

flush privileges;

原文地址:https://www.cnblogs.com/gu-bin/p/12130966.html