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

现象

通过JDBC连接MySQL提示

分析

先检查权限问题

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

可能你的密码错了

这个容易被忽略!