Environment configuration of SQL Server data to MySQL database

Source: Internet
Author: User
Tags install perl mysql database

Attempted to migrate a SQL Server database to a MySQL database in the previous period

Scenario is Perl language read SQL Server for appropriate type conversion data processing after writing to MySQL

Two execution end and one receiving end

The final speed reached is 10 million level of the table about 5 minutes to import the completion of which solves the problem of garbled

A 3G size database takes half an hour

15G 5-hour time consuming

The whole process is as follows:

The first is the configuration of the environment and the installation of Plug-ins.

First, the receiving end.

In a Linux system's machine

installing MySQL

If you have a geo-coordinate field Geo, MySQL needs to use more than 5.5 version of it.

CentOS6.4 installation mysql5.6.14

The execution end is then arranged (it can be installed on another Linux system or installed on a computer with MySQL on it).

Because here we will divide the database table into several to run the data, so if in SQL Server's reading and the speed bottleneck, executes the end machine more, the speed is quicker.

CentOS Install Perl

Perl installation dbdmysql operation MySQL Database

Perl connects SQL Server via UNIXODBC

Finally install the Handlersocket (because Handlersocket has installation steps on the receiver's machine and on the execution side of the machine)

Handlersocket Introduction and Installation and Uninstall

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.