0

我正在尝试使用 EnterpriseDB 迁移工具将我的 MySQL 数据库转换为 PostgreSQL。我的设置如下:

  • 视窗 10 x64
  • MySQL 5.5.52 社区版 GPL
  • EDB PostgreSQL 9.6.2-2
  • EnterpriseDB 迁移工具包 50.0.1

问题是 - 它成功连接到源 MySQL 和目标 PostgreSQL,但随后失败并出现错误“无法识别的配置参数 db_​​dialect”:

C:\Program Files (x86)\edb\mtk\bin>runMTK -sourcedbtype mysql s2c_data 

Running EnterpriseDB Migration Toolkit (Build 50.0.1) ...  

Source database connectivity info...  
conn=jdbc:mysql://localhost:3306/s2c_data?zeroDateTimeBehavior=convertToNull 
user =s2c_data_user  
password=******  


Target database connectivity info...  
conn =jdbc:edb://localhost:5432/s2c_data  
user =s2c_data_user 
password=******  


Connecting with source MySQL database server...  
Connected to MySQL, version '5.5.52-log'  
Connecting with target EDB Postgres database server...  
Connected to PostgreSQL, version '9.6.2'  

Importing mysql schema s2c_data... 
MTK-17003:Error in copy tables: java.sql.SQLException: com.edb.util.PSQLException: ERROR: unrecognized configuration parameter: "db_dialect" 
MTK-03000: General Error DB-null: java.sql.SQLException: java.sql.SQLException: java.sql.SQLException: com.edb.util.PSQLException: ERROR: unrecognized configuration parameter: "db_dialect"


One or more schema objects could not be imported during the migration process. Please review the migration output for more details.

Migration logs have been saved to C:\Users\Alex_R\.enterprisedb\migration-toolkit\logs

******************** Migration Summary ********************

Total objects: 0 Successful count: 0 Failed count: 0 Invalid count: 0

*************************************************************

C:\Program Files (x86)\edb\mtk\bin>

有人遇到同样的问题吗?似乎是 EDB MTK 中的一个错误,但可能是我遗漏了一些东西。将不胜感激任何帮助。

4

3 回答 3

0

根据EDB 的文档,这是他们的 Postgres PLUS fork of PostgreSQL 的一个参数。

所以看起来这个迁移工具只在你迁移到他们的专有版本 PostgreSQL 时才有效,而不是标准版本。

于 2017-03-02T19:54:01.593 回答
0

我认为你应该参考 这个工具的文档

根据this document,也许您可​​以尝试再添加一个命令行选项:

C:\Program Files (x86)\edb\mtk\bin>runMTK -sourcedbtype mysql -targetdbtype postgresql s2c_data
于 2017-03-11T12:41:24.857 回答
0

我找到了解决方案 - DBTransfer。原始版本非常旧且有缺陷,所以我不得不修复一些东西。来源在这里。随意将它用于您的项目。

于 2017-03-12T14:16:14.777 回答