数据库教程:ERROR 1862 (HY000): Your password has expired. To log in you must change it using a …..分享

错误信息:

ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords

出现问题原因:

可能是你在安装 MySQL过程中,通过mysqld –initialize 初始化 mysql 操作后,生成临时密码后,没有直接进行 MySQL连接,中途重启服务或者重启机器等,导致密码失效问题

解决方式:

1.修改 my.cnf 配置文件

vi /etc/my.cnf

ERROR 1862 (HY000): Your password has expired. To log in you must change it using a .....

2.重启 mysql 服务

你可以使用 service mysqld restart 重启也行,因为我是通过二进制源码包安装的 MySQL,这种方式启动目前报错。所以我是用安装目录下的 support-files 目录下的命令重启,如下图所示

ERROR 1862 (HY000): Your password has expired. To log in you must change it using a .....

3.无密码登录

ERROR 1862 (HY000): Your password has expired. To log in you must change it using a .....

4.同第 1 步,将新增的 skip-grant-tables =1 删除

5.同第 1 步,重启 mysql 服务

6.使用新密码 root 来登录 mysql

ERROR 1862 (HY000): Your password has expired. To log in you must change it using a .....

好了,本文结束,希望对大家有所帮助!

您可能感兴趣的文章:oracle 提示登录密码过期完美解决方法Oracle用户密码过期和用户被锁的解决方法oracle密码过期的彻底解决方案Mysql用户忘记密码及密码过期问题的处理方法Oracle数据库用户的密码过期时间如何修改为永不过期详解MySQL的用户密码过期功能Oracle 11g中密码过期问题详解Oracle 11G密码180天过期后的修改方法mysql密码过期导致连接不上mysqlORA-28002 Oracle 11g存在密码过期问题解决方案

标签: log ed ng st sin change pass ex OR chan ss sw sing word ir exp has

jQuery 操作input中radio的技巧

JS HTML5实现拖拽移动列表效果

上述就是数据库技术:ERROR 1862 (HY000): Your password has expired. To log in you must change it using a …..分享的全部内容,如果对大家有所用处且需要了解更多关于mysql数据库学习教程,希望大家多多关注—计算机技术网(www.ctvol.com)!

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/dtteaching/945031.html

(0)
上一篇 2021年11月15日
下一篇 2021年11月15日

精彩推荐