MySQL 5.7修改root密码

mysql -uroot -p
update mysql.user set authentication_string=password('新密码') where user='root';
flush privileges;
posted @ 2020-03-16 16:10  荣神益人  阅读(1937)  评论(0)    收藏  举报