ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st
新安装的mysql 数据库 mysql -u root -p 登录进去之后,执行use sql;show databases;等指令提示错误
使用
alter user ‘root’@‘localhost’ identified by ‘XXXX’;
更换密码,其中XXXX为自己要重设的密码,要字母大小写带特殊符号的密码,不然不会通过。
修改通过之后