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

作者:扛麻袋的少年 时间:2024-01-12 19:56:51 

错误信息:

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 .....

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

来源:https://blog.csdn.net/lzb348110175/article/details/103055606

标签:密码,过期,mysql
0
投稿

猜你喜欢

  • Python 3.6 中使用pdfminer解析pdf文件的实现

    2023-09-02 08:34:08
  • 自动更新程序的设计框架

    2009-08-12 13:00:00
  • 一文初探Go语言中的reflect反射包

    2024-02-07 01:31:51
  • PHP访问MySQL查询超时处理的方法

    2023-11-23 03:05:48
  • python基础之匿名函数详解

    2021-08-23 12:15:18
  • Vue.directive 自定义指令的问题小结

    2024-05-09 10:43:29
  • sqlserver 快速生成汉字的首拼字母的函数(经典)

    2012-06-06 20:16:41
  • python读取raw binary图片并提取统计信息的实例

    2023-09-22 12:46:35
  • Pandas 缺失数据处理的实现

    2023-07-14 05:57:38
  • php开发微信支付获取用户地址

    2023-09-07 15:12:08
  • FP-growth算法发现频繁项集——构建FP树

    2022-04-26 16:22:52
  • 在cmd命令行里进入和退出Python程序的方法

    2023-07-18 04:21:14
  • asp修改文件和文件夹的名字的代码

    2011-04-11 11:04:00
  • TFRecord文件查看包含的所有Features代码

    2023-07-26 15:45:08
  • PHP生成sitemap.xml地图函数

    2024-06-05 09:23:16
  • 网友分享:Oracle数据库开发技术经验浅谈

    2009-04-22 13:11:00
  • vue.js在标签属性中插入变量参数的方法

    2024-05-28 15:58:09
  • 在VS2019环境下使用Opencv调用GPU版本YOLOv4算法的详细过程

    2023-05-12 10:50:46
  • oracle 动态AdvStringGrid完美示例 (AdvStringGrid使用技巧/Cells)

    2009-06-19 17:21:00
  • 对numpy中shape的深入理解

    2023-12-09 03:43:41
  • asp之家 网络编程 m.aspxhome.com