首页 > 技术文章 > mysql5.7修改root密码

uzxin 2019-12-17 10:26 原文

use mysql;

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

flush privileges;

推荐阅读