mysql5.7+ 修改数据库密码

USE mysql;
UPDATE user SET authentication_string = PASSWORD('newpasswd') WHERE user = 'root' AND host = '%';
FLUSH PRIVILEGES;

  

posted @ 2021-12-07 23:00  哦克Oak  阅读(61)  评论(0编辑  收藏  举报