首页 > 其他 > 详细

You must reset your password using ALTER USER statement before executing this statement.

时间:2018-06-24 20:28:09      阅读:284      评论:0      收藏:0      [点我收藏+]

MySQL 5.7之后,刚初始化的MySQL实例要求先修改密码。否则会报错:

mysql> create database test;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

所以修改下密码就OK:

alter user root@localhost identified by 'P@ssword1!';
flush privileges;

You must reset your password using ALTER USER statement before executing this statement.

原文:https://www.cnblogs.com/f-ck-need-u/p/9221317.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!