解决办法:

先通过跳过授权表的方式启动数据库:

mysqld_safe --user=mysql--datadir=/data/mysql --skip-grant-tables --skip-networking &

这样就可以免密码登录了。

然后修改该用户密码过期策略为N:

update user set password_expired="N" where user="root";

flush privileges;

重启数据库即可。

service mysql restart

ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supp相关推荐

  1. mysql5.7密码过期ERROR 1862 (HY000): Your password has expired. To log in you must change

    环境: ubuntu14.04  mysql5.7 一.mysql5.7 密码过期问题 报错: ERROR 1862 (HY000): Your password has expired. To lo ...

  2. mysql 5.7 登录时报:ERROR 1862 (HY000): Your password has expired

    一 问题描述 1.在项目现场,安装的是麒麟linux操作系统,安装完成mysql后,进行mysql 命令行登录时,报如下错误: [root@localhost ~]# mysql -uroot -h1 ...

  3. Mysql 5.7 错误号码1862 Your password has expired. To log in you must change it using a client...

    Mysql 5.7 错误号码1862 Your password has expired. To log in you must change it using a client- 解决方案: 1.进 ...

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

    为什么80%的码农都做不了架构师?>>>    msyql 5.7.11版本安装 mysql生成的root的临时密码是 2016-05-10T10:05:47.421912Z 1 [ ...

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

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

  6. 1862 - Your password has expired. To log in you must change it using a client that supports expired

    此情况 发生在 重装mysql数据库后,设置完成密码后登陆数据库可视化软件如sqlyog.登录时出现 这是因为你现在设置密码和之前卸载mysql的密码一致,在你登陆可视软件(sqlyog)时 有默认缓 ...

  7. mysql密码过期your password has expired.To log in you must change itusing a client that supports expired

    1.首先进入你的mySQL安装的bin目录下: 2.接着敲mysql -uroot -p 进入mysql中 3.这个时候就可以开始修改你的密码了: set password = password('1 ...

  8. MySQL密码过期ERROR 1862 (HY000)

    报错内容:ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that ...

  9. ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

    ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 这是 mysql 初始化时,使用临 ...

最新文章

  1. 树莓派/PC实现实时摄像头数据共享(Python—picamera)
  2. SAP QM初阶之维护检验计划时可以不用事先创建好检验特性主数据
  3. PHP Web System Optimization(undone)
  4. Windows Azure NotificationHub+Firebase Cloud Message 实现消息推动(付源码)
  5. 如何理解 ListT和 DictionaryK,V 的扩容机制 ?
  6. [一分钟先生]涂勇:通过跳槽走上管理岗位不可取
  7. 因遭做空机构指控存在金融欺诈 法拉第未来聘请律所展开调查
  8. python自学行吗-有编程基础Python自学行吗?
  9. Android开发新手常见的10个误区
  10. CodeForces 670C Cinema
  11. 【BZOJ-3573】米特运输 树形DP
  12. 测试网络机顶盒的软件,新买的网络机顶盒安装什么软件好 几款热门装机必备软件分享...
  13. redis下载安装教程(详细步骤)
  14. cis系统服务器,基于客户端/服务器模式头影测量信息系统(CIS)影像测量模块的开发...
  15. Analyze 命令的使用方法
  16. matlab调用CVX工具包
  17. Android开机启动流程
  18. 腾讯云CDN2023年1月5日起,将按用户访问的 HTTPS 请求数次数单独计费,对我有影响吗?
  19. Wifite.py 修正版脚本代码
  20. java记事本(一)

热门文章

  1. 傲梅轻松备份成为超越Ghost的国产备份软件
  2. 总算挽回点面子,中国上月为印尼发射通信卫星定点成功 运行正常
  3. 爬虫框架Scrapy(西瓜皮)
  4. GitHub7200星,一个可以白嫖全网无损音乐的神器
  5. 如何使用List.toArray()转换为数组对象
  6. 用exclusion切断maven jar包的依赖传递
  7. 开发你自己的Android 授权管理器 (AccountManager的使用以及应用场景)
  8. centos7 qemu -- 03 使用KVM虚拟机遇到的问题
  9. 鲜为人知的HTTP协议头字段详解大全
  10. 一款基于SpringBoot开发开源外卖系统