连接MySQL的password expired问题

大数据专栏
上一篇 主目录 下一篇

【前言】
安装部署Hive,在使用命令schematool -dbType mysql -initSchema进行初始化启动时报错


错误概述

Your password has expired. To log in you must change it using a client that supports expired passwords.
在这里插入图片描述
即数据库root密码过期导致无法连接成功

解决方式

打开数据库:

 mysql -uroot -p
 >Enter Password:

更新数据库密码:

alter user 'root'@'localhost' identified by '123456';

退出

exit
发布了180 篇原创文章 · 获赞 149 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/qq_33208851/article/details/104779302