gpt4 book ai didi

mysql - 执行 SSIS 包以将数据从 SQL 2012 服务器迁移到 MySql 时出错

转载 作者:行者123 更新时间:2023-11-29 00:03:24 27 4
gpt4 key购买 nike

我正在尝试使用 SSIS 包将数据从 MS Sql server 2012 迁移到 MySql server (5.1)

这是我的数据流任务,它使用查询从 SQL Server 检索数据并将其泵送到 Mysql(其中一列包含 blob 类型)

enter image description here enter image description here

和属性

enter image description here

尝试使用 ODBC 连接管理器和 ADO.net(odbc 驱动程序)管理器作为目标。

以下是我遇到的错误,在将一些记录插入 MySql 后失败,我无法找出原因/解决方案:

Error: 0xC020844B at DFT Finding Attachment, ADO NET Destination 2: An exception has occurred during data insertion, the message returned from the provider is: The connection has been disabled.

Error: 0xC0047022 at DFT Finding Attachment, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "ADO NET Destination" (2) failed with error code 0xC020844B while processing input "ADO NET Destination Input" (9). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.

最佳答案

问题出在 MySql max_allowed_pa​​cket,它设置为 1MB,因此在插入大 blob 时失败,所以答案是将它创建为 64MB

设置全局 max_allowed_pa​​cket=64M

关于mysql - 执行 SSIS 包以将数据从 SQL 2012 服务器迁移到 MySql 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28673394/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com