java通过代码连接的时候出现Could not create connection to database server. Attempted reconnect 3 times. Giving up. 解决方法: 1. 2.jar版本要和mysql版本匹配 无聊就学习 反正没事干