mysql5.7如何修改密码

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

posted @ 2020-11-05 11:29  tochenwei  阅读(116)  评论(0编辑  收藏  举报