Your password has exipred. To log in you must change it using a client that supports ...

环境:Mysql 5.7 , Windows Server 2012 R2

今天突发发现某个服务器上的mysql无法访问了,Navicat连接,提示:

Your password has exipred. To log in you must change it using a client that supports expired passwords.


mysql控制台也无法进入。

怎么办?想要回复访问,步骤如下:

1. 应急之策

找到mysql的启动配置文件,my.ini,加入取消用户权限检查的语句:skip-grant-tables,然后重启mysql服务。


可以访问了,问题暂时解决。

2. 实质性的解决方法

在my.ini中添加设置密码不过期的语句:default_password_lifetime=0,然后重启mysql服务。


猜你喜欢

转载自blog.csdn.net/zhouyingge1104/article/details/80542687
今日推荐