Mysql server does not support 4-byte encoded utf8 characters

前端 未结 8 2014
逝去的感伤
逝去的感伤 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:26

    Got the same problem. Is it possible to convert the chars before insert into mysql database?

    I've got a MySQL database on a remote web server, nothing special. Now I'm using a ODBC Driver to connect the remote MySQL Database with my local MS SQL Server 2008. This works great, but when I'm trying to insert string values from MSSQL, the error occurs. With numbers (int) it works great.

    Syntax looks like

    INSERT INTO OPENQUERY(
       MYSQL, 
       'SELECT Adresse, Mandant, Matchcode FROM   usr_p171552_2.Adressen' 
    ) SELECT Adresse, Mandant, Matchcode FROM Adressen
    

    Okay.

    I'm look for something like

    INSERT INTO OPENQUERY(
        MYSQL, 
        'SELECT Adresse, Mandant, Matchcode FROM usr_p171552_2.KHKAdressen' 
    ) SELECT Adresse, Mandant, Matchcode FROM KHKAdressen CONVERTTOCHARSET compatiblecharset
    
    0 讨论(0)
  • 2020-12-04 00:29

    If you need MySQL to support 4-byte UTF-8 characters (which is normally considered part of UTF-8), you need to use the character set utf8mb4, not utf8. utf8mb4 was first supported in MySQL 5.5.3.

    0 讨论(0)
提交回复
热议问题