Fix mysql compatibility with jdk8_301

Latest jdk8#301 disables TLS 1.0/1.1 used by default by the not up-to-date mysql jdbc connectors.
 This leads to errors like this: `javax.net.ssl.SSLHandshakeException:No appropriate protocol`.
 A workaround is to set the enabledTLSProtocols=TLSv1.2 jdbc url parameter explicitly.
This commit is contained in:
Christian Tzolov
2021-09-27 17:58:35 +02:00
committed by Artem Bilan
parent db4db3647a
commit eeeedda5ce

View File

@@ -51,7 +51,7 @@ public abstract class CdcMySqlTestSupport {
MAPPED_PORT = String.valueOf(debeziumMySQL.getMappedPort(3306));
jdbcTemplate = CdcTestUtils.jdbcTemplate(
"com.mysql.cj.jdbc.Driver",
"jdbc:mysql://localhost:" + MAPPED_PORT + "/" + DATABASE_NAME,
"jdbc:mysql://localhost:" + MAPPED_PORT + "/" + DATABASE_NAME + "?enabledTLSProtocols=TLSv1.2",
"root",
"debezium");
}