Software used: mysqlmigrationtool
The system prompts that the data is too large to be imported. Modify the max_allowed_packet of the my. CNF file to be greater than MB. In Windows, my. CNF may not be displayed. You need to enter the address: drive letter: \ directory MySQL tutorial binmy. CnF in the editor.
"There can be only one timestamp column with current_timestamp in default or on update clause". In MSSQL, more than two Date and Time fields in a table use getdate () to obtain the default value. just remove it.
"Blob/Text column 'table name' can't have a default value". This field cannot use the default value. just remove it.
"The maximum row size for the used table type, not counting blobs, is 65535. you have to change some columns to text or blobs ", this table takes up too much space, and appropriately reduces the number or length of fields.
After running the software, click Next to enter the following interface:
Select ms SQL Server and follow the prompts. The connection string is:
JDBC: jtds: sqlserver: // ip address: Port (1433 by default)/database tutorial name; user = user name; Password = password; charset = gb2312; domain =
The next step is MySQL, and the connection string is:
JDBC: mysql: // ip address: Port (3306 by default )/? User = username & Password = PASSWORD & useserverprep;ts = false &
Characterencoding = UTF-8
Then follow the prompts. On this page, select the table to ignore.
Continue to next and enter this interface. It is critical to set the character encoding here.
MSSQL import MySQL without garbled characters mysqlmigrationtool
MySQL GUI tools 5.0 contains mysqlmigrationtool, which can complete our tasks.
This tool requires support of JRE update 8 or above and can be downloaded from sun.com at a very fast speed.
Http://www.java.com/zh_CN/download/manual.jsp
Some people import MySQL after running the command. The result is garbled Chinese characters, because there is
Select the encoding step. Here, you must select user defined, and fill in charset = GBK, the value of coll... tion is equal
Gbk_chinese_ci is to change Latin and Swidish to Chinese. In short, we should be optimistic
Otherwise, you will not be able to blame others for garbled characters.
Next is all the way ....