1. 程式人生 > >sqoop連線mysql提示Your password has expired

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

意思大致是說密碼過期,進入Mysql通過命令:

select password_expired,User from User

檢視密碼是否過期,結果密碼根本就沒過期,

於是修改本地密碼後,重試還是連不上。

解決:

修改root使用者的遠端訪問許可權:

grant all privileges on *.* to 'root' @'%' identified by 'root';

flush privileges;

如果還是連不上,那麼請檢查windows的入站是否放行了3306,如果沒有請新增入站規則

新增3306埠,下面全是下一步即可

再次連線mysql成功。