Dear readers of our blog, we'd like to recommend you to visit the main page of our website, where you can learn about our product SQLS*Plus and its advantages.
 
SQLS*Plus - best SQL Server command line reporting and automation tool! SQLS*Plus is several orders of magnitude better than SQL Server sqlcmd and osql command line tools.
 

REQUEST COMPLIMENTARY SQLS*PLUS LICENCE

Enteros UpBeat offers a patented database performance management SaaS platform. It proactively identifies root causes of complex revenue-impacting database performance issues across a growing number of RDBMS, NoSQL, and deep/machine learning database platforms. We support Oracle, SQL Server, IBM DB2, MongoDB, Casandra, MySQL, Amazon Aurora, and other database systems.

How to transfer data from Microsoft SQL Server to a MySQL database

9 September 2020

How to transfer data from Microsoft SQL Server to a MySQL database

If you mainly use open-source programs in your company, and there are several MS SQL server databases, you can consider moving to a MySQL database.

Below are a few reasons why you might want to consider migrating Microsoft SQL Server to a MySQL database:

  • 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.
  • Unlike SQL Server, MySQL supports a wide range of operating systems, including several Linux, Solaris, and Mac distributions.
  • To implement a scalable database infrastructure.
  • In order to take advantage of several additional features of a MySQL database, which have been tested over many years by a huge open source.

Move an MS SQL database to MySQL using the “MySQL Workbench” utility module

The easiest way to install MySQL Workbench is to install “Oracle MySQL for Windows”, which installs several MySQL tools including Workbench.

Download and install the MySQL Installer, which includes the Workbench and other necessary modules and drivers you need for migration.

The steps required to migrate an MSSQL database to MySQL using the Workbench Migration Wizard

1. Take care of the necessary conditions

Before running the MySQL database migration wizard in the toolbox, we need to make sure that ODBC drivers are present to connect to the original Microsoft SQL Server database as they are not supplied with the Workbench.

Make sure that the max_allowed_packet option in MySQL Server is large enough for the migration.

Make sure that we can connect to both the target MySQL server database and the source MSSQL Server database with the appropriate privileges that are necessary for the data migration.

In the MySQL Workbench, the Migration Wizard will display the following “Migration task list” that you need to go through to finish the migration process.

The steps required to migrate an MSSQL database to MySQL using the Workbench Migration Wizard

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 name in the database.

Selecting the source and target database

Next, define a target connection to a MySQL database in the Options tab. Select “Local MySQL instance” or “Remote MySQL instance” depending on the situation.

On the Options tab, enter the hostname or IP address of the MySQL database, MySQL port, and user name. If you do not specify a password, he will offer you.

define a target connection to a MySQL database in the Options

After you specify the source and destination, all available schemes and databases will be listed.

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.

specify a custom schema mapping in the target MySQL database

3. Transfer of objects

At this step, Microsoft SQL Server schema objects, table objects, data types, default values, indexes, primary keys are converted.

Note that the view object, functioning objects and stored procedures are simply copied and commented on, we will need to convert them manually.

4. Data Migration

At this stage, the automated copy of data is made from the source to the target database for the transferred tables.

Data Migration

Note that with the Migration Wizard, we can only convert tables and copy data, but cannot convert triggers, views and stored procedures.

We have to do this manually, we could cover this in a future article on how to transfer stored procedures from MS SQL to MySQL.

 
Tags: , , , , ,

MORE NEWS

 

Preamble​​NoSql is not a replacement for SQL databases but is a valid alternative for many situations where standard SQL is not the best approach for...

Preamble​​MongoDB Conditional operators specify a condition to which the value of the document field shall correspond.Comparison Query Operators $eq...

5 Database management trends impacting database administrationIn the realm of database management systems, moreover half (52%) of your competitors feel...

The data type is defined as the type of data that any column or variable can store in MS SQL Server. What is the data type? When you create any table or...

Preamble​​MS SQL Server is a client-server architecture. MS SQL Server process starts with the client application sending a query.SQL Server accepts,...

First the basics: what is the master/slave?One database server (“master”) responds and can do anything. A lot of other database servers store copies of all...

Preamble​​Atom Hopper (based on Apache Abdera) for those who may not know is an open-source project sponsored by Rackspace. Today we will figure out how to...

Preamble​​MongoDB recently introduced its new aggregation structure. This structure provides a simpler solution for calculating aggregated values rather...

FlexibilityOne of the most advertised features of MongoDB is its flexibility.  Flexibility, however, is a double-edged sword. More flexibility means more...

Preamble​​SQLShell is a cross-platform command-line tool for SQL, similar to psql for PostgreSQL or MySQL command-line tool for MySQL.Why use it?If you...

Preamble​​Writing an application on top of the framework on top of the driver on top of the database is a bit like a game on the phone: you say “insert...

Preamble​​Oracle Coherence is a distributed cache that is functionally comparable with Memcached. In addition to the basic function of the API cache, it...

Preamble​​IBM pureXML, a proprietary XML database built on a relational mechanism (designed for puns) that offers both relational ( SQL / XML ) and...

  What is PostgreSQL array? In PostgreSQL we can define a column as an array of valid data types. The data type can be built-in, custom or enumerated....

Preamble​​If you are a Linux sysadmin or developer, there comes a time when you need to manage an Oracle database that can work in your environment.In this...

Preamble​​Starting with Microsoft SQL Server 2008, by default, the group of local administrators is no longer added to SQL Server administrators during the...