Home Database Mysql Tutorial sql server数据导到mysql数据库的环境配置

sql server数据导到mysql数据库的环境配置

Jun 07, 2016 pm 04:19 PM
mysql server data database environment Configuration

前段时间 尝试进行sqlserver数据库移植到mysql数据库 方案是 perl语言读取sqlserver 作相应的类型转换数据处理后 写入mysql 两个执行端和一个接收端 最终达到的速度是一千万级条数的表 大概5分钟内导入完毕 其中解决了乱码等问题 3G大小的数据库耗时半个小时

   前段时间 尝试进行sqlserver数据库移植到mysql数据库

  方案是 perl语言读取sqlserver 作相应的类型转换数据处理后 写入mysql

  两个执行端和一个接收端

  最终达到的速度是一千万级条数的表 大概5分钟内导入完毕 其中解决了乱码等问题

  3G大小的数据库耗时半个小时

  15G的耗时5个小时

  整个流程如下:

  首先是环境的配置和插件的安装。

  首先是接收端

  在一台linux系统的机子中

  安装mysql

  如果有地理坐标字段geo的话 mysql要用5.5以上的版本才行

  CentOS6.4安装mysql5.6.14

  然后 布置 执行端(可以在另外一台linux系统的机子上安装,也可以在装了mysql上的机子上安装)

  因为这里我们会把数据库的表分成几份来跑数据,,所以 如果在sqlserver的读取和网速的瓶颈之内,执行端机子越多,速度越快。

  CentOS安装perl

  Perl安装DBDmysql操作mysql数据库

  perl通过unixODBC连接SQLServer

  最后安装handlersocket (因为handlersocket在接收端的机子和执行端的机子上都有安装步骤)

  HandlerSocket简介及安装及卸载

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to optimize MySQL query performance in PHP? How to optimize MySQL query performance in PHP? Jun 03, 2024 pm 08:11 PM

How to optimize MySQL query performance in PHP?

How to use MySQL backup and restore in PHP? How to use MySQL backup and restore in PHP? Jun 03, 2024 pm 12:19 PM

How to use MySQL backup and restore in PHP?

How to insert data into a MySQL table using PHP? How to insert data into a MySQL table using PHP? Jun 02, 2024 pm 02:26 PM

How to insert data into a MySQL table using PHP?

How to fix mysql_native_password not loaded errors on MySQL 8.4 How to fix mysql_native_password not loaded errors on MySQL 8.4 Dec 09, 2024 am 11:42 AM

How to fix mysql_native_password not loaded errors on MySQL 8.4

How to use MySQL stored procedures in PHP? How to use MySQL stored procedures in PHP? Jun 02, 2024 pm 02:13 PM

How to use MySQL stored procedures in PHP?

70B model generates 1,000 tokens in seconds, code rewriting surpasses GPT-4o, from the Cursor team, a code artifact invested by OpenAI 70B model generates 1,000 tokens in seconds, code rewriting surpasses GPT-4o, from the Cursor team, a code artifact invested by OpenAI Jun 13, 2024 pm 03:47 PM

70B model generates 1,000 tokens in seconds, code rewriting surpasses GPT-4o, from the Cursor team, a code artifact invested by OpenAI

AI startups collectively switched jobs to OpenAI, and the security team regrouped after Ilya left! AI startups collectively switched jobs to OpenAI, and the security team regrouped after Ilya left! Jun 08, 2024 pm 01:00 PM

AI startups collectively switched jobs to OpenAI, and the security team regrouped after Ilya left!

How to create a MySQL table using PHP? How to create a MySQL table using PHP? Jun 04, 2024 pm 01:57 PM

How to create a MySQL table using PHP?

See all articles