mysql突然无法连接,提示:Your password has expired. To log in you must

遇到错误: Your password has expired. To log in you must change it using a client that supports expired passwords. 原因是: MySQL 5.6 introduces password-expiration capability, to enable database administrators to expire account passwords
遇到错误:
 
 Your password has expired. To log in you must change it using a client that supports expired passwords.
 
原因是:
 
MySQL 5.6 introduces password-expiration capability, to enable database administrators to expire account passwords and require users to reset their password. 
 
所以只需重新修改下密码即可,修改方式如下:
以root权限登录mysql:(这里我的账户是root,密码也是root)
mysql -uroot -proot
然后更改密码:
SET PASSWORD = PASSWORD('root');
 
OK,可以正常使用了。
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

liunx mysql root账户提示:Your password has expired. To log in you must change it using a client that supports expired passwords,要怎么操作呢? 1、修改 /etc/my.cnf,在 [mysqld] 小节下添加一行:skip-grant-tables=1 这一行配置让 mysqld 启动
MySQL是一种流行的关系型数据库系统,它提供了多种时间类型和模式,用于存储和处理时间数据。本文将详细介绍MySQL时间类型和模式的详细攻略。
首先在官网下载CentOS7镜像,并在VMware虚拟机中新建一台CentOS7虚拟机,将镜像挂载到虚拟机中并启动。
MySQL中出现lock wait timeout exceeded问题的原因是由于两个或多个事物同时请求相同的资源造成的,并且在某一时刻至少一个事务无法获取资源,超过了MySQL默认的等待时间,从而导致事务失败。这种问题的出现会极大地影响数据库的性能和并发能力。
针对“Linux下安装配置MySQL”的问题,我为您提供以下完整攻略:
我们来讲解一下MySQL sql_mode的使用。