1. 程式人生 > >mysql 5.7 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executi

mysql 5.7 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executi

搭建slave 庫,

主庫執行:
mysql> grant replication slave on *.* to [email protected]"192.168.40.132" identified by 'root';

報 設定了 skip-grant-tables 引數,在配置檔案中將該引數註釋掉,重啟

mysql> grant replication slave on *.* to [email protected]"192.168.40.132" identified by 'root';
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql> SET PASSWORD FOR root=PASSWORD('root');
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql>  FLUSH PRIVILEGES;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql> SET PASSWORD FOR root=PASSWORD('root');
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql>  alter user 'root'@'*' identified by 'root';
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql>  alter user 'root'@'*' identified by 'root123';
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql>  alter user 'root'@'localhost' identified by 'root';


Query OK, 0 rows affected (0.02 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

看來對這個命令有要個要求

相關推薦

mysql 5.7 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executi

搭建slave 庫, 主庫執行: mysql> grant replication slave on *.* to [email protected]"192.168.40.132" identified by 'root'; 報 設定了 skip-gran

mysql 報錯ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin

<div id="article_content" class="article_content clearfix csdn-tracking-statistics" data-pid="blog" data-mod="popu_307" data-dsm="post"

Mysql 5.7ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

1、通過mysql -uroot -p,輸入密碼登入後,必須馬上修改密碼,否則會報錯 2、將密碼修改為123456,依然報錯   這和mysql 5.7的密碼策略(validate_password_policy)有關,validate_password_policy可以取如下值:

登入mysql 報錯ERROR 1820 (HY000): You must reset your password using ALTER USER ......

1、原因:windows下首次登入mysq時報1820的錯誤,是因為安裝好mysql時密碼有一個指定的預設值,需要重置密碼才能正常使用資料庫,下面是解決該錯誤的方案: 1)在cmd下進入mysql安裝的bin目錄,登入mysql資料庫: ....\bin>mysql -hlocal

Mac 安裝 MySQL 5.7 後登入後無法執行命令【You must reset your password using ALTER USER statement before executing this statement.】

question 服務 com flow alter ima 5.7 use sql 今天在 Mac 上安裝了 MySQL 5.7 ,啟動服務後,輸入 mysql -u root -p 後,輸入初始密碼程,嘗試執行 show databases; 報了一個 You mu

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

mysqlYou 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後,命令列無法輸入命令提示 You must reset your password using ALTER USER statement before executing this statement.   一步就可以決絕問題1. 提示You must reset your pa

mysqlYou must reset your password using ALTER USER statement before executing this statement.

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

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 executing t

mysql5.7免安裝版報錯處理You must reset your password using ALTER USER statement before executing

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

關於you must reset your password using ALTER USER statement before exectuting this statement 解決

使用 cal using mysql this localhost 解決 host 運行 安裝完mysql 之後,登陸以後,不管運行任何命令,總是提示這個 step 1:SET PASSWORD = PASSWORD(‘your new password‘); step 2

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

tac ges body 安裝 ins https efm root ati 安裝完mysql 之後,登陸以後,不管運行任何命令,總是提示這個 step 1: SET PASSWORD = PASSWORD(‘your new password‘); step 2: AL

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

在mac上使用mysql,使用過程中突然報錯 You must reset your password using ALTER USER statement before executing this statement. 從錯誤提示上不難看出需要修改密碼。 1、登入mysql:/

ERROR 1820 (HY000): You must reset your password

password 執行命令 using must for err you 解決辦法 local 數據庫安裝後執行命令ERROR 1820 (HY000): You must reset your password using ALTER USER statement bef

You must reset your password using ALTER USER

cal sql -a -s ref 密碼 roo statement oot 安裝完mysql 之後,登陸以後,不管運行任何命令,總是提示這個 step 1: SET PASSWORD = PASSWORD(‘your new password‘); step 2:

MySQL You must reset your password using ALTER USE

type nag https statement proc 上網 密碼 col use 今天在mac上新安裝了mysql 5.7。出了幾個小問題如下: 不要下最新的,安裝其他版本出現不兼容的問題。我開始的時候使用mysql8.0做實驗,程序怎麽也運行不起來,然後看程序l

mysql 5.7 ERROR 1820 (HY000):

exe root用戶密碼 reset gpo 默認 style his cut erro 在首次登錄Mysql 5.7 後,mysql數據庫做出了很多的調整。執行大部分操作會提示這個錯誤 : ERROR 1820 (HY000): You must reset your p

mysql 報錯ERROR 1820 (HY000):You must resetpassword

今天登入mysql(Server version: 5.7.11) 還是很好的,今天登入後執行任何命令都報下面的錯誤 mysql> help contentsERROR 1820 (HY000): You must reset your password using ALTER USER statem