开发者社区> 问答> 正文

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 2502 0
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
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像