apolloconfig / apollo-quick-start

Apollo Quick Start
691 stars 1.85k forks source link

MySQL 5.7.34 url需要添加 useSSL=false 否则报 Communications link failure #74

Closed xcocean closed 3 years ago

xcocean commented 3 years ago

MySQL 5.7.34 url需要添加 useSSL=false 否则报 Communications link failure

com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

xcocean commented 3 years ago

下面是我的连接

# apollo config db info
apollo_config_db_url="jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false"
apollo_config_db_username=root
apollo_config_db_password=123456

# apollo portal db info
apollo_portal_db_url="jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false"
apollo_portal_db_username=root
apollo_portal_db_password=123456
nobodyiam commented 3 years ago

这个是否和服务端设置有关?我本地安装的是 5.7.25,没有遇到这个问题,翻了 mysql 最近几个版本的 release note,貌似也没有发现这方面的 change note

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had activity in the last 21 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.