今天在Linux中部署java项目的时候,始终报错
Could not create connection to database server. Attempted reconnect 3 times
打好的jar在本地跑是没有问题的,但是在linux中一直报错。
下面是最终的url
url: jdbc:mysql://localhost:3306/my_blog?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC