Mysql server does not support 4-byte encoded utf8 characters

前端 未结 8 2131
逝去的感伤
逝去的感伤 2020-12-03 23:24

I\'ve received a server error running a Data transfer component from Sql Server to MySql db. The error message reads as follows:

[MySql][ODBC 5.1 Driver][mys

8条回答
  •  鱼传尺愫
    2020-12-04 00:18

    1. Update your MySQL to 5.5.3 and use utf8mb4 for column encoding.

    2. Force copy

    3. Create a new table in SQLServer with the same structure as the table you need to copy

    4. Change the new table's column nvarchar(size) -> varchar(size x 2)

    5. Copy the data into the new table

    6. Copy the SQLServer's data from the new table to MySQL

提交回复
热议问题