Mysql 5.7 错误号码1862 Your password has expired. To log in you must change it using a client… 解决方案: 1、进入mysql安装bin目录:执行cmd命令 mysql -u root -p root 2、更新密码 SET PASSWORD = PASSWORD('root'); 3、刷新 flush privileges; 完成上面三个操作后,退出。用新密码重新连接即可。