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.
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.
相关文章推荐
- Guide to Database Migration from Microsoft SQL Server using MySQL Workbench
- 远程mysql_java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- 远程mysql_java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- Migration from SQL server 2005/2008 to 2012
- 远程mysql_java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- 远程mysql_java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect to this MySQL server"
- mysql迁移到sqlserver数据库 SQL Server Migration Assistant for MySQL使用方法
- Mysql导入Sql文件时报Error Code: 2013 - Lost connection to MySQL server during query
- Import Data from Excel to SQL Server
- *You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio
- mysql message from server: "Host 'xxx' is not allowed to connect to this MySQL server的解决
- tomcat链接mysql时超时报错java.io.EOFException: Can not read response from server. Expected to read 4 bytes,
- Uploading / Downloading Pictures to / from a SQL Server
- [ERROR]Failed to load driver class com.microsoft.sqlserver.jdbc.SQLServerDriver from HikariConfig cl
- Transfer data to SQL Server from SPC-Light with Excel macros
- mysql连接报错---java.sql.SQLException: null, message from server
- message from server: "Host '192.168.1.10' is not allowed to connect to this MySQL server
- Export data from SQL Server to Excel
- SQL Server to MySQL 数据迁移