标签:密码 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