您的位置:首页 > 数据库 > MySQL

Migration from SQLServer to MySQL

2012-12-29 15:20 489 查看
I used MySQL Migration Toolkit to do this job. However, some tables with Chinese character could not be migrated successfully. After some experiments, I found the problem was caused by incorrect character encoding.

Firstly, you should specify encoding of the source table. In Source Database stage, fill Connection String with something like:
jdbc:jtds:sqlserver://127.0.0.1:1433/test;user=sa;password=sa;charset=gbk;domain=
The key is to set the charset encoding as gbk (default is utf-8).



Secondly, you should specify encoding of the target table. In Object Mapping stage, change Parameter from Latin1 to Multilanguage. So the table you are going to create would be based on utf-8 encoding.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐