1. With MSSQL Enterprise Manager, open the structure of the table (design table), local use phpMyAdmin according to the structure of one to create, while optimizing the table data fields, table creation completed.
2. Use Enterprise Manager to export a single table, import source selection text, separator choice;, the original is ', ', because phpmyadmin default is; Export a text file.
3. With the phpMyAdmin single table Import function, select the following CSV use LOAD DATA, you can import the table content.
Complete!
If the field is more, or a lot of records, then this method does not apply, you need to use software to help. At present, according to enjoy know, there are two better software can convert MSSQL to MYSQL. One is dbconvert for MSSQL & MySQL, which can be converted in bidirectional, more than 10 m. One is MSSQL to MySQL, very small, compressed bag is more than 1M. It can specify which tables of a library to guide SQL, but also directly into MySQL, very useful.
I used MSSQL to MySQL to convert a MSSQL library into SQL, in the actual operation found the following two problems.
1. The problem of table building. The generated table SQL specifies the ENGINE=INNODB, and I use the MYISAM type, GBK encoding, which is changed to: Engine=myisam DEFAULT CHARSET = GBK,
2. Coding problems. My database is GBK encoding, add the--DEFAULT-CHARACTER-SET=GBK option when importing, so Chinese can be displayed normally.
MySQL--default-character-set=gbk-d dbname < E:\hx\9enjoy.txt-uroot-p
Article author: Enjoy Reprint please indicate the original link.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.