1. 程式人生 > >使用Spoon同步資料庫表時:獲取欄位報錯。

使用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.重啟即可。