开发者社区 问答 正文

MySQL 5.7 - You must reset your password using ALTER USER statement before executing this statement

感谢“冬日”。


CentOS 7 系统,安装了mysql 5.7。


现象:用mysql客户端sql查询,如列出数据库,提示 You must reset your password using ALTER USER statement before executing this statement



处理:执行sql语句 -  ALTER USER 'root'@'localhost' IDENTIFIED BY 'CNnet!9283'; 更新root用户密码



参考: https://stackoverflow.com/questions/33467337/reset-mysql-root-password-using-alter-user-statement-after-install-on-mac


展开
收起
dongshan8 2018-11-27 11:03:07 2536 分享 版权
1 条回答
写回答
取消 提交回答
  • 阿里云ping https://ping.gaomeluo.com/aliyun/
    Re:MySQL 5.7 - You must reset your password using ALTER USER statement before executing this sta ..
    顶一下
    2018-11-27 15:16:14
    赞同 展开评论