久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

MySQL密碼過期該怎么辦

145次閱讀
沒有評論

共計 980 個字符,預計需要花費 3 分鐘才能閱讀完成。

這篇文章給大家介紹 MySQL 密碼過期該怎么辦,內容非常詳細,感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。

1、報錯提示
ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords;
2、解決方法
 (1)停止 MySQL 數據庫
 (2)以忽略密碼方式啟動 mysql 數據庫,并進入數據庫;
        在 my.cnf 文件中的[mysqld] 添加 skip-grant-tables 參數
   (3)進入 MySQL 的中的 mysql 庫(該命令為多實例進入命令)
  [root@host1 data4]# mysql -S /tmp/mysql.sock2
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.16-log MySQL Community Server (GPL)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type help; or \h for help. Type \c to clear the current input statement.

mysql  
(4)講 password_expired 設置為永不過期,
 mysql update user set password_expired= N where user= root
Query OK, 1 row affected (5.06 sec)
Rows matched: 1  Changed: 1  Warnings: 0
(5)退出后,關閉 MySQL 并注銷 my.cnf 中的 skip-grant-tables 參數
進入 mysql 數據庫后重新配置密碼;

關于 MySQL 密碼過期該怎么辦就分享到這里了,希望以上內容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

正文完
 
丸趣
版權聲明:本站原創文章,由 丸趣 2023-07-19發表,共計980字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 龙游县| 临海市| 丰原市| 贵溪市| 特克斯县| 梅州市| 西安市| 延安市| 通化县| 科技| 奈曼旗| 馆陶县| 镇坪县| 白朗县| 龙州县| 铜鼓县| 杭州市| 河源市| 阿克陶县| 红安县| 游戏| 龙井市| 榕江县| 沽源县| 惠东县| 屯昌县| 旬邑县| 阳泉市| 平湖市| 贺州市| 曲水县| 康保县| 山东| 阳泉市| 太保市| 南投市| 那坡县| 永顺县| 五华县| 方正县| 乐亭县|