mysql 连接登录错误your password has expired ,to log in you must change it using a client that supports ex
2018-02-12 15:04
423 查看
ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords.
your password has expired ,to log in you must change it using a client that supports expired passwords
您的密码已经过期,要登录您必须使用一个客户端来更改它。
支持密码到期
解决错误方法
1.在my.cnf mysqld 部分加入 skip-grant-tables 参数。[mysqld]
skip-grant-tables2.重启mysql数据库,然后登陆
3.查看mysql的用户状态>select host,user,password_expired,account_locked from mysql.user;
+-----------+-----------+------------------+----------------+
| host | user | password_expired | account_locked |
+-----------+-----------+------------------+----------------+
| localhost | root | Y | N |
| localhost | mysql.sys | N | Y |
+-----------+-----------+------------------+----------------+
3 rows in set (0.00 sec)password_expired :y说明密码已经过期,可以改成N,就是未过期>update mysql.user set password_expired='N';
Query OK, 1 row affected (0.03 sec)
Rows matched: 2 Changed: 1 Warnings: 0
4.然后注释掉skip-grant-tables参数重启mysql,用过期的密码就可以登陆了,登陆之后可以用下面的命令修改密码
>alter user user() identified by '123456';
Query OK, 0 rows affected (0.03 sec)>flush privileges;
Query OK, 0 rows affected (0.03 sec)
your password has expired ,to log in you must change it using a client that supports expired passwords
您的密码已经过期,要登录您必须使用一个客户端来更改它。
支持密码到期
解决错误方法
1.在my.cnf mysqld 部分加入 skip-grant-tables 参数。[mysqld]
skip-grant-tables2.重启mysql数据库,然后登陆
3.查看mysql的用户状态>select host,user,password_expired,account_locked from mysql.user;
+-----------+-----------+------------------+----------------+
| host | user | password_expired | account_locked |
+-----------+-----------+------------------+----------------+
| localhost | root | Y | N |
| localhost | mysql.sys | N | Y |
+-----------+-----------+------------------+----------------+
3 rows in set (0.00 sec)password_expired :y说明密码已经过期,可以改成N,就是未过期>update mysql.user set password_expired='N';
Query OK, 1 row affected (0.03 sec)
Rows matched: 2 Changed: 1 Warnings: 0
4.然后注释掉skip-grant-tables参数重启mysql,用过期的密码就可以登陆了,登陆之后可以用下面的命令修改密码
>alter user user() identified by '123456';
Query OK, 0 rows affected (0.03 sec)>flush privileges;
Query OK, 0 rows affected (0.03 sec)
相关文章推荐
- mysql错误:your password has expired..
- MySQL错误号码1862:your password has expired
- MySQL错误号码1862:your password has expired
- mysql错误之------- mysql your password has expired
- MySQL错误号码1862:your password has expired
- mysql5.7初始化后连接mysql的时候报:Your password has expired.
- Mysql 5.7 错误号码1862 Your password has expired. To log in you must change it using a client...
- MySQL错误号码1862:your password has expired
- MySQL错误代码1862 your password has expired的解决方法
- mysql密码过期的修改方法(your password has expired)
- [mysql] ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords.
- mysql5.7密码过期ERROR 1862 (HY000): Your password has expired. To log in you must change
- mysql your password has expired
- MYSQL(5.7) 报错:1862 your password has expired
- Mysql数据库登录问题:Your password has expired.
- 【MySQL】MySQL 5.7 "Your password has expired.To log in you must change it using a client that suppor"
- mysql your password has expired
- MySQL5.7出现Your password has expired. To log in you must change it using a client that supports expir
- phpmysql登陆报错 #1862 - Your password has expired.
- mysql-1862、1820、java.sql.SQLException: Your password has expired. To log in you must change it using a client that supports expired passwords.