码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-06-24 21:10:37      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:密码   5.7   root   tab   mysql   erro   stat   否则   pre   

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.

标签:密码   5.7   root   tab   mysql   erro   stat   否则   pre   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!