mysql5.7跳过认证修改密码后的报错
1.问题:登陆MYSQL以后,不管运行任何命令,总是提示这个
mysql> show databases;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql> ALTER USER USER() IDENTIFIED BY '你的密码';如果要设置密码永不过期,my.cnf配置如下:
my.cnf配置如下: [mysqld] default_password_lifetime=0