使用Spoon同步数据库表时:获取字段报错。

错误说明:Unable to close prepared statement after determining SQL layout You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT' at line 1

解决方案:暂未深究,只说个人是如何解决的,大家可以尝试一下。

1.关闭spoon。

2.将本地MySql安装目录下的驱动包(MySQL\Connector J 5.1\mysql-connector-java-5.1.45-bin.jar)拷贝到Spoon的lib目录下(pdi-ce-6.0.1.0-386\data-integration\lib)下,再删除同级目录中之前的不适配版本。

3.重启即可。

猜你喜欢

转载自blog.csdn.net/qq_32791023/article/details/81004244