MSSQL to MySQL database of the actual operation records _ database other

Source: Internet
Author: User
Tags mssql phpmyadmin
The following article mainly introduces the database of MSSQL to MySQL to some of the records of the actual operation of the process, as well as the actual operation of the problems found in the elaboration, including the problem of building a table, coding problems, the following is the main content of the article Description, hope you will be harvested.

Today, a MSSQL database into MySQL, in the absence of conversion tools, for the field of the data table I used the following method of hand work conversion, but also convenient. MSSQL uses Enterprise Manager operation, MySQL uses phpMyAdmin operation.

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 build table SQL specifies the ENGINE=INNODB, and I use the MyISAM type, the GBK encoding, and it's 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

The above related content is to the MSSQL to MySQL database Some records of the introduction, hope you can have some harvest.

The related content above is the description of some records of MSSQL to MySQL database, hope will bring some help to you in this aspect.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.