1、敲mysql -uroot -p 进入mysql中

 

2、输入你的密码 我的是root,成功后就是下面这样:

your password has expired.To log in you must change itusing a client that supports expired passwords

3、这个时候就可以开始修改你的密码了:

your password has expired.To log in you must change itusing a client that supports expired passwords

4、设置我们这次的密码永远不过期,记得要设置省得天天磨磨唧唧的: alter user 'root'@'localhost'password expire never

your password has expired.To log in you must change itusing a client that supports expired passwords

5、再保存刷新一下吧

your password has expired.To log in you must change itusing a client that supports expired passwords

6、滚去Navicat测试一下咯

相关文章: