我本机安装的mysql版本是5.6的,那么IDEA要连接mysql也应该匹配下驱动版本。把Driver改成MySQL for 5.1就可以了.
参考链接:https://blog.csdn.net/qq_38436214/article/details/102922619