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

2017-11-17 21:26:57

环境:

ubuntu14.04  mysql5.7


一、mysql5.7 密码过期问题

报错:

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

翻译:

错误1862(HY000):你的密码已经过期。登录必须改变它使用一个客户端,支持过期的密码。


解决方法:

1、 用忽略授权表的方法进入mysql 

1
2
3
4
        vi /etc/my.cnf
      [mysqld]
      skip-grant-tables
      :wq! #保存退出

2、进入mysql,查看root用户的详细信息

1
2
3
        # mysql -u root -p
        > use mysql
        select from mysql.user where user='root' \G
1
2
3
4
5
6
7
8
  • 2021-01-08 16:47:37

    nodejs如何使用fetch

    node 中没有实现 fetch,你可以使用 node-fetch,使得在 node 中也可以使用 fetch.

  • 2021-01-08 16:49:59

    CommonJs 与 ESModule区别

    node中模块导入require是一个内置的函数,因此只有在运行后我们才可以得知模块导出内容,无法做静态分析

  • 2021-01-08 16:54:08

    如何在 Node.js 中使用 import / export 的三种方法

    注:第1、2种方法均是借助 babel,需要注意的是文章使用的babel版本 < 7。从 babel 7.X 版本开始,部分包名、用法发生了些许变化,大体与7之前的用法类似,详细请到官方手册学习 7.X 版本的改动(Babel 踩坑总结(三) —— 7.X 版本升级是我对 7.X 版本三大改动的总结)