mysql5.7如何修改密码

use mysql;
update user set authentication_string=password('新密码') where user='root' and Host='localhost';
flush privileges;

posted @ 2020-11-05 11:29  cnlovefish  阅读(130)  评论(0)    收藏  举报