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成功。

猜你喜欢

转载自blog.csdn.net/qq_15076569/article/details/84308528
今日推荐