JDBC连接MySQL帐号密码输错的小坑

时间:2021-04-30 12:01:05   收藏:0   阅读:0

现象

通过JDBC连接MySQL提示

技术图片

分析

先检查权限问题

grant all privileges on *.* to ‘root‘@‘%‘ with grant option;  

可能你的密码错了

这个容易被忽略!

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!