[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.

[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.IDEA连接linux上的mysql失败

我用的是idea19.3版本的,想要连接linux上的目mysql(版本5.1.73)。在linux命令行上可以连接,用户名和密码也都正确。但就是连不上去。
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.

解决方案:

IDEA对应的驱动不对,把IDEA对应的驱动从MYSQL改成MySQL5.1就成功连接上了数据库:
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.

然后就解决成功
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.


不知道,小编的这篇文章有没有帮助到你呢。好了,欢迎关注小编。各位小主的点赞就是小编坚持下去的动力。小编会继续更新更多的内容哦~~~
我是小哪吒,目前是传智的一名学子。我是一名互联网行业的工具人,小编的座右铭:“我不生产代码,我只做代码的搬运工”…哈哈哈,我们下期见哦,Bye~

最怕自己碌碌无为还安慰自己平凡可贵