Kubernetes权威指南 中 com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database 的错误

Kubernetes权威指南 中第一章 从一个简单的例子开始中

会出现这样的错误com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database ,

经查找因为docker mysql镜像的版本的问题。

网上有人说5.6可以运行,但是我这里还是不行,

Error:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

5.6的版本还是有错误,后来升级到5.7 就OK了。

 

 

 

 

 

posted @ 2019-11-24 15:45  JustDotNet  阅读(1887)  评论(1编辑  收藏  举报