1.报错解决
2020-02-24 17:13:26.257 [job-0] ERROR RetryUtil - Exception when calling callable, 异常Msg:Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for ["jdbc:mysql://211.144.86.111:13305/erp_manage?useUnicode=true&characterEncoding=utf8"]&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true
com.alibaba.datax.common.exception.DataXException: Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for ["jdbc:mysql://211.144.86.111:13305/erp_manage?useUnicode=true&characterEncoding=utf8"]&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true
这个错误解决我做了两步,1)我在jdk的目录C:\Program Files (x86)\Java\jdk1.8.0_241\jre\lib\ext下加了mysql的JDBC的jar包。2)修改了job.json文件中的jdbcUrl,原来是数组形式,我去掉[]后不报错。但是官方给出的是可以带[],所以我一时也不知道是什么原因。