mysql5.7修改root密码

use mysql;

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

flush privileges;

原文地址:https://www.cnblogs.com/uzxin/p/12053032.html