1. 程式人生 > >MySQL錯誤號碼1862:your password has expired

MySQL錯誤號碼1862:your password has expired

因為是好久沒有用mysql,然後隔了三個多月再次登入就出現了以上問題,嗯嗯,從來不太會用命令列的我,在QQ群裡求助,最終迷迷糊糊的解決了。。。。反正記錄一下希望對大家有幫助吧,我到現在也迷迷糊糊的。

我是win8的系統。

1):win+R,執行裡輸入services.msc開啟服務,關閉MySQL57服務(57是我的MySQL Server的版本號)

2):win+R。執行中輸入cmd,cd C:/Program Files/MySQL/MySQL Server 5.7/bin回車進入bin目錄下面,然後 mysqld --defaults-file="C:/ProgramData/MySQL/MySQL Server 5.7/my.ini"  --skip-grant-tables

一定是my.ini,我一開始找到Program Files下面的my-default.ini去了,可以再服務中右擊屬性檢視一下,就是這個。

這句話貌似是在命令視窗中開了一個mySQL的服務,該命令通過跳過許可權安全檢查,開啟mysql服務,這樣連線mysql時,可以不用輸入使用者密碼。


3):win+R,新開一個cmd視窗,原來的別關了呀。

輸入命令:

mysql -uroot -p

出現:

Enter password:

在這裡直接回車,不用輸入密碼。

然後就就會出現登入成功的資訊。

然後在這裡登SQLyog就可以登進去了耶

4)更改密碼(在SQLyog裡面):update mysql.user set password=password("123456") where user='root';

5)反正後面就是>mysql -uroot -p123456命令列中可以登入進去,但是SQLyog還是不行,後面又查了資料:

都關閉了之後,服務中將MySQL57服務開啟

執行視窗中進入bin目錄,>mysql -uroot -p123456登入進去,然後執行select * from mysql.users

會有如下資訊:ERROR 1820 (HY000): You must SET PASSWORD before executing this statement

解決:mysql> SET PASSWORD = PASSWORD('123456');

          Query OK, 0 rows affected (0.03 sec)

然後再select * from mysql.users就有結果了。

然後再SQLyog就登入進去了。

我的反正就好了,不知道怎麼就好了呢,還有QQ群友遠端協助來著:ありがとうございました。

嗯嗯,僅作參考吧。想想我大概想了十幾回要解除安裝重灌,但是最後也只是將SQLyog解除安裝重灌了四次or五次?呵呵,解除安裝MySQL會比較麻煩吧,有問題還是努力去解決的好吧。加油!

參考資料:
1).http://www.cnblogs.com/andy_tigger/archive/2012/04/12/2443652.html
2). http://www.jb51.net/article/39187.htm

相關推薦

MySQL錯誤號碼1862your password has expired

因為是好久沒有用mysql,然後隔了三個多月再次登入就出現了以上問題,嗯嗯,從來不太會用命令列的我,在QQ群裡求助,最終迷迷糊糊的解決了。。。。反正記錄一下希望對大家有幫助吧,我到現在也迷迷糊糊的。 我是win8的系統。 1):win+R,執行裡輸入services.m

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

報錯原因是:密碼過期。不管你是剛剛修改密碼還是什麼,只要登陸都是有問題的,都是報這樣子的錯誤。 解決方法是: 1、修改/etc/my.cnf檔案,在[mysqld]下加入“skip-grant-tables”。 2、重啟mysql伺服器 3、登陸mysql [[email prote

MYSQL ERROR 1862 (HY000): Your password has expired.

遇到錯誤: ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords. 原因是: M

mysql5.7密碼過期ERROR 1862 (HY000): Your password has expired. To log in you must chang

一、mysql5.7 密碼過期問題 報錯: 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

環境: Centos 6.5   mysql5.7 一、mysql5.7 密碼過期問題 報錯: ERROR 1862 (HY000): Your password has expired. To log in you must change

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

解決辦法: 先通過跳過授權表的方式啟動資料庫: mysqld_safe --user=mysql--datadir=/data/mysql --skip-grant-tables --skip-networking & 這樣就可以免密碼登入了。 然後修改該使用者密

sqoop連線mysql提示Your password has expired

使用sqoop連線mysql5.7出現錯誤: Your password has expired. To log in you must change it using a client that supports expired passwords 意思大致是說密碼過期,進入Mysq

MySQLMySQL 5.7 "Your password has expired.To log in you must change it using a client that suppor"

解決辦法1:更新密碼: set password=password('password'); 解決辦法2:禁用密碼有效期 ALTER USER 'root'@localhost' PASSWORD EXPIRE INTERVAL 90 DAYS; ALTER USER

PyCharm證書過期Your license has expired

報錯“your evaluation license has expired, pycharm will now exit”1、解決步驟,點選‘Activation code’,授權啟用pycharm 2、修改C:\Windows\System32\drivers\etc 目錄下的hosts檔案將hos

mac安裝mysql5.7 Your password has expired. To log in you must change it using a cl...

問題描述:Your password has expired. To log in you must change it using a client that supports expired passwords. 解決辦法:root許可權登入mysql:mysql -uroot

【已解決】PyCharm證書過期Your license has expired

問題描述 今天開啟PyCharm的時候彈出提示框 Your license has expired,表示證書到期了,無法繼續使用軟體。之前使用的證書是在學校的時候註冊的學生賬號,也就是以.edu.cn

MySQL5.7出現Your password has expired. To log in you must change it using a client that supports expir

簡介 今天晚上本來想寫bootstrap-fileinput外掛整合fastdfs的文章,但是剛啟動idea裡面的QiYuAdmin就出現了錯誤: Your password has expired. To log in you must change it

java.sql.SQLException: Your password has expired. To log in you must change it using a client that s

java.sql.SQLException: Your password has expired.To log in you must change it using a client that supports expired passwords. com.mysql.jdbc.exceptions.j

scp或ssh 出現WARNING: Your password has expired.

scp 出現WARNING: Your password has expired.Password change required but no TTY available. 或者ssh遠端登陸出現: WARNING: Your password has expired.

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

開啟 命令列 /usr/local/mysql/bin/mysqladmin -u root -p password 提示輸入按照後的那個密碼 輸入完成後 提示輸入新的密碼 Enter pass

mysql】You must reset your password using ALTER USER statement before executing this statement報錯處理

安裝完mysql 之後,登陸以後,不管執行任何命令,總是提示這個 mysql> show databases; ERROR 1820 (HY000): You must reset your password using ALTER USER statement before execut

mysql】You must reset your password using ALTER USER statement before executing this statement.

故障現場:登陸到MySQL伺服器,不管你執行什麼命令都報這個錯 mysql> show databases; ERROR 1820 (HY000

解決your password has experied資料庫密碼過期的問題

注意:當你很久沒使用安裝在電腦上的oracle時,oracle的預設的儲存密碼是180天 1)在登入plsql的時候,使用者名稱和密碼使用 sys sys 注意修改連線為:SYSDBA 2)在列表中找到users 3)在users下面找到過期的使用者名稱,右擊修改,這裡以使用者名

mac mysql error You must reset your password using ALTER USER statement before executing this statement.

安裝完mysql 之後,登陸以後,不管執行任何命令,總是提示這個 step 1: SET PASSWORD = PASSWORD('your new password'); step 2: ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER; step

docker 報錯x509: certificate has expired or is not yet valid

%d pull mage set repos 證書 val 證書過期 ica 環境:centos 7 程序:docker 下載鏡像報錯: # docker pull centos Pulling repository centos FATA[0004] Get https