如何解决mysql创建表的时报错问题: You must reset your password using ALTER USER statement before executing this st

1、报错

ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement

2、连接数据库

如何解决mysql创建表的时报错问题: You must reset your password using ALTER USER statement before executing this st

3、修改账号和密码:

alter user 'root'@'localhost' identified by '123456';

如何解决mysql创建表的时报错问题: You must reset your password using ALTER USER statement before executing this st

4、刷新重置

flush privileges;

如何解决mysql创建表的时报错问题: You must reset your password using ALTER USER statement before executing this st

5、显示账号

如何解决mysql创建表的时报错问题: You must reset your password using ALTER USER statement before executing this st