Mysql server does not support 4-byte encoded utf8 characters(Mysql 服务器不支持 4 字节编码的 utf8 字符)
问题描述
我在运行从 Sql Server 到 MySql db 的数据传输组件时收到服务器错误.错误信息如下:
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 驱动程序][mysqld-5.0.67-community-nt-log]服务器不支持4字节编码的UTF8字符.
源 Sql Server 表包含 nvarchar 列,目标 MySql 表包含 varchar 列.
The source Sql Server table contains nvarchar columns, the target MySql table contains varchar columns.
有人能解释一下这个问题吗?
Can anybody shed some light on this problem?
推荐答案
如果需要 MySQL 支持 4 字节 UTF-8 字符(通常被认为是 UTF-8 的一部分),则需要使用字符集 utf8mb4,不是utf8.utf8mb4 最早在 MySQL 5.5.3 中得到支持.
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.
这篇关于Mysql 服务器不支持 4 字节编码的 utf8 字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Mysql 服务器不支持 4 字节编码的 utf8 字符
基础教程推荐
- 在 MySQL 中:如何将表名作为存储过程和/或函数参数传递? 2021-01-01
- mysql选择动态行值作为列名,另一列作为值 2021-01-01
- 表 './mysql/proc' 被标记为崩溃,应该修复 2022-01-01
- 在多列上分布任意行 2021-01-01
- 如何在 SQL 中将 Float 转换为 Varchar 2021-01-01
- oracle区分大小写的原因? 2021-01-01
- 什么是 orradiag_<user>文件夹? 2022-01-01
- 二进制文件到 SQL 数据库 Apache Camel 2021-01-01
- MySQL 中的类型:BigInt(20) 与 Int(20) 2021-01-01
- 如何根据该 XML 中的值更新 SQL 中的 XML 2021-01-01
