--依次执行以下三条SQL

ALTER
USER 'dykj'@'%' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; --'dykj'@'%' 为登陆不上的用户
ALTER USER 'dykj'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; FLUSH PRIVILEGES;   --123456 为新密码

 

posted on 2020-06-24 21:35  许一朵岁月  阅读(569)  评论(0编辑  收藏  举报