建的网站打开很慢,软件开发公司简介,怎么做网站优化 site,济南seo网站关键词优化排名mysql5.7 密码过期了怎么办发布时间#xff1a;2020-05-08 14:11:09来源#xff1a;亿速云阅读#xff1a;148作者#xff1a;三月下文主要给大家带来mysql5.7 密码过期了怎么办#xff0c;希望这些文字能够带给大家实际用处#xff0c;这也是我编辑mysql5.7 密码过期了怎…mysql5.7 密码过期了怎么办发布时间2020-05-08 14:11:09来源亿速云阅读148作者三月下文主要给大家带来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、 用忽略授权表的方法进入mysqlvi /etc/my.cnf[mysqld]skip-grant-tables:wq! #保存退出2、进入mysql查看root用户的详细信息#mysql -u root -puse mysqlselect * from mysql.user where userroot \G** 1. row ***Host: localhostUser: rootSelect_priv: YInsert_priv: YUpdate_priv: YDelete_priv: YCreate_priv: YDrop_priv: YReload_priv: YShutdown_priv: YProcess_priv: YFile_priv: YGrant_priv: YReferences_priv: YIndex_priv: YAlter_priv: YShow_db_priv: YSuper_priv: YCreate_tmp_table_priv: YLock_tables_priv: YExecute_priv: YRepl_slave_priv: YRepl_client_priv: YCreate_view_priv: YShow_view_priv: YCreate_routine_priv: YAlter_routine_priv: YCreate_user_priv: YEvent_priv: YTrigger_priv: YCreate_tablespace_priv: Yssl_type:ssl_cipher:x509_issuer:x509_subject:max_questions: 0max_updates: 0max_connections: 0max_user_connections: 0plugin: mysql_native_passwordauthentication_string: *AC241830FFDDC8943AB31CBD47D758E79F7953EApassword_expired: Npassword_last_changed: 2015-11-11 16:52:49password_lifetime: NULLaccount_locked: N1 row in set (0.00 sec)3、把password_expired 改成不过期update user set password_expiredN where userroot; flush privileges; quit把 /etc/my.cnf 的 skip-grant-tables 这行注释掉5、重启服务#service mysql restart6、再次登陆 mysql 就正常了对于以上关于mysql5.7 密码过期了怎么办大家是不是觉得非常有帮助。如果需要了解更多内容请继续关注我们的行业资讯相信你会喜欢上这些内容的。