Professional Documents
Culture Documents
Why Migrate?
Below are a few reasons why you might want to consider migrating Microsoft SQL Server to a MySQL
database:
1. Reduced Cost: In order to avoid huge licenses and support for MS SQL Server. In
MySQL, even if you decide to use the corporate version of MySQL, it is cheaper.
2. Supports Major Operating Systems (OS) and Platforms: Unlike MS SQL, MySQL runs
efficiently on all of the major OS and platform combinations including Windows, Linux
and Solaris.
3. Installation and Configuration: MySQL usually takes 15 minutes or less for
downloading and installation. To make the installation and configuration process much
easier
4. Flexibility: SQL Server uses a single storage engine. However, MySQL provides
developers great flexibility to choose different storage engines for different table types.
1. Data Loader
2. MySQL Workbench (open source)
3. MSSQL Import & Export Tool
For migration purpose I am using MySQL Workbench. This tool is designed to save DBA and
developer time by providing visual, point and click ease of use around all phases of configuring
and managing a complex migration process:
Before starting the MySQL database migration wizard in Workbench, we need to ensure
that ODBC drivers are present for connecting to the source Microsoft SQL Server
database, as it is not bundled with Workbench.
Verify that the max_allowed_packet option in the MySQL server is sufficient for the
largest field to be migrated.
Migration Process
Step 1:
To start the migration process, on the MySQL Workbench main screen, go to Database->
Migration Wizard.
Step 2: Selecting the source and target database
First, define the connection options for the initial Microsoft SQL Server database. Select
“Microsoft SQL Server” from the drop-down list of database systems. On the Options tab, select
DSN and specify the user’s name in the database.
N
ext, define a target connection to a MySQL database in the Options tab. And test the
connection.
Step 3: In the next step, MySQL Workbench will connect to our SQL Server to fetch a list of the
catalogs and schemas.
You can select a specific schema that you like, migrate (or select all), and you can also
specify a custom schema mapping in the target MySQL database.