[MySQL] SQL Server migration to MySQL method introduction

Source: Internet
Author: User

First, the principle:

Only the table structure and data are migrated, and stored procedures, functions, triggers are rewritten as much as possible and fully tested.

Before migrating, set up some parameters of the database, such as default storage engine, default encoding, etc., to facilitate subsequent import.

second, the method:

1. Using MySQL Workbench

MySQL Workbench provides the migration Wizard (Database Migration) feature to support the data format of MSSQL into MySQL data formats;

Refer specifically to this article: http://mysqlworkbench.org/2012/07/migrating-from-ms-sql-server-to-mysql-using-workbench-migration-wizard/

If there is not a enough memory to allocate insert buffer of size 1073741824, please Google resolve. may be the MySQL side max_allowed_packet, key_buffer_size size setting problem.

The solution for the blogger is to create a new MySQL database on the Windows machine as an intermediate import library. Then synchronize the data between the two MySQL libraries.

Attention:

1) Look at the log file Wb.log error, copy the results of this log prevail.

2) source Rmbms connection parameter, server fills in SSMs after that name (general-name).


2. Using Navicat Premium--I recommend

Navicate provides the ability to transmit data, which can be used as an intermediary operation node to copy a database to another library.

Simple operation, the general interface to select the libraries and tables to be synchronized, the advanced interface to remove the creation of the index, check the error continue, other basic default.

Pay attention to the log after completion, if there is an error not to copy the data, please resynchronize these tables, and in the high-level hook using the full INSERT statement,

So we can see the SQL statements in the log and manually perform the insert and debug errors. Table is not synchronized, please manually build the table.


third, follow-up operation:

1, manually rewrite the stored procedures, functions and triggers, and to pass the program to fully test the inspection.

2, according to business needs, add the appropriate index.

Attached: Two different methods: https://www.percona.com/blog/2016/06/23/migrate-from-ms-sql-server-to-mysql/

[MySQL] SQL Server migration to MySQL method introduction

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.