我正在尝试将AS400的IBM数据复制设置为MySQL。对于目标MySQL,它现在是最新的MySQL 8.0.20 Community Server。我已经很好地测试了JDBC连接。但是,CDC实例永远不会启动(通过测试从8.0.9rc到8.0.20的MySQL Jdbc连接)。在Windows中,实例已添加但未启动。已完成一些操作,但是无法在RHEL中添加实例。但是,日志错误消息是完全相同的。
仅对于8.0.9rc至8.0.11,它可能试图与返回的错误建立连接。
由于1.8的JRE / JDK提供了IBM,所以我已经为设置设置了正确的JAVA_HOME,PATH。有什么线索吗?我已尝试使用以下连接字符串:(在Windows / Linux Access Server和IIDR上)
实际上,它提供了相同的结果。我尝试用jdbc:mysql://127.0.0.1:3306 / testdb&useSSL = false]输入错误
然后,它可以返回语法错误。有人有任何线索吗?它与JDBC VS Java版本兼容性问题有关吗?
详细的Java日志消息:
] >>36 2020-06-07 11:21:51.335 main {1} com.datamirror.ts.engine.ReplicationExecutive startup()监视统计数据库错误:发生SQL异常。 SQL错误代码为“ 0”。 SQL状态是:08001。错误消息是:|由于潜在的异常而无法加载连接类:com.mysql.cj.core.exceptions.WrongArgumentException:格式错误的数据库URL,未能解析主URL部分。†com.datamirror .ts.monitoragent.statistics.MonitorStatisticsPbException监视统计信息数据库错误:发生SQL异常。 SQL错误代码为“ 0”。 SQL状态是:08001。错误消息是:|由于潜在的异常而无法加载连接类:com.mysql.cj.core.exceptions.WrongArgumentException:格式错误的数据库URL,未能解析主URL部分。在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.openConnection(MonitorStatisticsDatabase.java:616)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase。(MonitorStatisticsDatabase.java:129)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.monitorStatsCollectOn(MonitoringStatistics.java:162)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics。(MonitoringStatistics.java:145)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.start(MonitoringStatistics.java:177)|在com.datamirror.ts.engine.ReplicationExecutive.init(ReplicationExecutive.java:430)|在com.datamirror.ts.engine.ReplicationExecutive.startup(ReplicationExecutive.java:244)|在com.datamirror.ts.commandlinetools.script.Startup.executeUtility(Startup.java:92)|在com.datamirror.ts.commandlinetools.shared.BaseUtility.entryPoint(BaseUtility.java:267)|在com.datamirror.ts.commandlinetools.script.Startup.main(Startup.java:105)处|由以下原因引起:java.sql.SQLNonTransientConnectionException由于底层异常,无法加载连接类:com.mysql.cj.core.exceptions.WrongArgumentException :数据库URL格式错误,无法解析主要URL部分。在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:108)|在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:95)|在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:87)|在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:61)|在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:71)|在com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:79)|在com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:131)|中在com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:232)|在java.sql.DriverManager.getConnection(DriverManager.java:675)|在java.sql.DriverManager.getConnection(DriverManager.java:258)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.createConnection(MonitorStatisticsDatabase.java:765)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.openConnection(MonitorStatisticsDatabase.java:569)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase。(MonitorStatisticsDatabase.java:129)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.monitorStatsCollectOn(MonitoringStatistics.java:162)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics。(MonitoringStatistics.java:145)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.start(MonitoringStatistics.java:177)|在com.datamirror.ts.engine.ReplicationExecutive.init(ReplicationExecutive.java:430)|在com.datamirror.ts.engine.ReplicationExecutive.startup(ReplicationExecutive.java:244)|在com.datamirror.ts.commandlinetools.script.Startup.executeUtility(Startup.java:92)|在com.datamirror.ts.commandlinetools.shared.BaseUtility.entryPoint(BaseUtility.java:267)|在com.datamirror.ts.commandlinetools.script.Startup.main(Startup.java:105)处|由以下原因引起:com.mysql.cj.core.exceptions.UnableToConnectException由于底层异常,无法加载连接类:com.mysql.cj .core.exceptions.WrongArgumentException:数据库URL格式错误,无法解析主要URL部分。在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)|在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:83)|在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)|在java.lang.reflect.Constructor.newInstance(Constructor.java:437)|在com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:60)|在com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:99)|在com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:232)|在java.sql.DriverManager.getConnection(DriverManager.java:675)|在java.sql.DriverManager.getConnection(DriverManager.java:258)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.createConnection(MonitorStatisticsDatabase.java:765)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.openConnection(MonitorStatisticsDatabase.java:569)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase。(MonitorStatisticsDatabase.java:129)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.monitorStatsCollectOn(MonitoringStatistics.java:162)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics。(MonitoringStatistics.java:145)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.start(MonitoringStatistics.java:177)|在com.datamirror.ts.engine.ReplicationExecutive.init(ReplicationExecutive.java:430)|在com.datamirror.ts.engine.ReplicationExecutive.startup(ReplicationExecutive.java:244)|在com.datamirror.ts.commandlinetools.script.Startup.executeUtility(Startup.java:92)|在com.datamirror.ts.commandlinetools.shared.BaseUtility.entryPoint(BaseUtility.java:267)|在com.datamirror.ts.commandlinetools.script.Startup.main(Startup.java:105)|由以下原因引起:com.mysql.cj.core.exceptions.WrongArgumentException格式错误的数据库URL,未能解析主URL部分。在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)|在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:83)|在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)|在java.lang.reflect.Constructor.newInstance(Constructor.java:437)|在com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:60)|在com.mysql.cj.core.conf.url.ConnectionUrlParser.parseConnectionString(ConnectionUrlParser.java:140)|在com.mysql.cj.core.conf.url.ConnectionUrlParser。(ConnectionUrlParser.java:130)|在com.mysql.cj.core.conf.url.ConnectionUrlParser.parseConnectionString(ConnectionUrlParser.java:119)|在com.mysql.cj.core.conf.url.ConnectionUrl.getConnectionUrlInstance(ConnectionUrl.java:197)|在com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:202)|在java.sql.DriverManager.getConnection(DriverManager.java:675)|在java.sql.DriverManager.getConnection(DriverManager.java:258)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.createConnection(MonitorStatisticsDatabase.java:765)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.openConnection(MonitorStatisticsDatabase.java:569)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase。(MonitorStatisticsDatabase.java:129)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.monitorStatsCollectOn(MonitoringStatistics.java:162)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics。(MonitoringStatistics.java:145)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.start(MonitoringStatistics.java:177)|在com.datamirror.ts.engine.ReplicationExecutive.init(ReplicationExecutive.java:430)|在com.datamirror.ts.engine.ReplicationExecutive.startup(ReplicationExecutive.java:244)|在com.datamirror.ts.commandlinetools.script.Startup.executeUtility(Startup.java:92)|在com.datamirror.ts.commandlinetools.shared.BaseUtility.entryPoint(BaseUtility.java:267)|在com.datamirror.ts.commandlinetools.script.Startup.main(Startup.java:105)37 2020-06-07 11:21:51.335 main {1} com.datamirror.ts.util.TsExceptionHandler processUnhandledException()发生未捕获的异常:†java.lang.RuntimeException com.datamirror.ts.monitoragent.statistics.MonitorS我正在尝试将AS400的IBM数据复制设置为MySQL。对于目标MySQL,它现在是最新的MySQL 8.0.20 Community Server。我已经很好地测试了JDBC连接。但是,CDC ...
[mysql代理跟踪日志中显示的指向URL构造的异常是不合适的,请看下面的例子。
示例:jdbc:mysql:// hostname:db_port / db_name?serverTimezone = UTC