承接 jumper423/migration-mysql-to-postgresql 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jumper423/migration-mysql-to-postgresql

Composer 安装命令:

composer create-project jumper423/migration-mysql-to-postgresql

包简介

Миграция из Mysql в PostgreSql

README 文档

README

FromMySqlToPostgreSql - the database migration tool.

WHAT IS IT ALL ABOUT?

FromMySqlToPostgreSql is a tool, intended to make a process of migration from MySql to PostgreSql as easy and smooth as possible.

Important update!
Recently I've developed NMIG, a database migration app, written in Node.js, and highly inspired by FromMySqlToPostgreSql.
NMIG has a few important functional enhancements.
Due to Node.js asynchronous nature, NMIG executes a part of its tasks in parallel, what makes it up to 3 times faster than FromMySqlToPostgreSql. Visit https://github.com/AnatolyUss/nmig.
However, if you're not into Node.js, you can still use old and proven FromMySqlToPostgreSql.

KEY FEATURES

  • Ease of use - the only thing needed to run this script is the PHP(CLI) interpreter.
  • Accuracy of migration the database structure - FromMySqlToPostgreSql converts MySql data types to corresponding PostgreSql data types, creates constraints, indexes, primary and foreign keys exactly as they were before migration.
  • Ability to migrate big databases - in order to reduce RAM consumption
    FromMySqlToPostgreSql will split each table's data into several chunks.
    The chunk size can be adjusted easily via configuration file.
  • Speed of data transfer - in order to migrate data fast
    FromMySqlToPostgreSql uses PostgreSQL COPY protocol.
    Note: migration of tables, containing "varbinary" or "blob" columns may be considerably slower.
  • Ease of monitoring - FromMySqlToPostgreSql will provide detailed output about every step, it takes during the execution.
  • Ease of configuration - all the parameters required for migration should be put in one single file, which can be in either "xml" or "json" format.
  • Ability to transfer only a data (in case of an existing database).

SYSTEM REQUIREMENTS

  • PHP (CLI) 5.4 or above
  • PDO_MYSQL should be installed and enabled
  • PDO_PGSQL should be installed and enabled
  • mbstring should be installed and enabled
  • register_argc_argv should be enabled (check php.ini).

USAGE

1. Create a new database.
    Sample:CREATE DATABASE my_postgresql_database;

2. Download FromMySqlToPostgreSql package and put it on the machine running your PostgreSql.
    Sample: /path/to/FromMySqlToPostgreSql

3. Create configuration

4. Run the script from a terminal.
    Sample: php index.php

5. At the end of migration check log files, if necessary.
    Log files will be located in "logs_directory" folder in the root of the package.
    Note: "logs_directory" will be created during script execution.

6. In case of any remarks, misunderstandings or errors during migration,
    please feel free to email me anatolyuss@gmail.com

VERSION

Current version is 1.4.0
(major version . improvements . bug fixes)

TEST

Tested using MySql Community Server (5.6.21) and PostgreSql (9.3).
The entire process of migration 59.6 MB database (49 tables, 570750 rows),
which includes data types mapping, creation of tables, constraints, indexes,
PKs, FKs, migration of data, garbage-collection and analyzing the newly created
PostgreSql database took 3 minutes 6 seconds.

Tested using MySql Community Server (5.6.21) and PostgreSql (9.4).
The entire process of migration 3.1 GB database (56 tables, 8732967 rows),
with the same steps as above, took 2 hours and 10 minutes.

REMARKS

Errors/Exceptions are not passed silently.
Any error will be immediately written into the error log file.

ACKNOWLEDGEMENTS

Big thanks to all contributors for their valuable remarks!

jumper423/migration-mysql-to-postgresql 适用场景与选型建议

jumper423/migration-mysql-to-postgresql 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 40 次下载、GitHub Stars 达 1, 最近一次更新时间为 2016 年 06 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「mysql」 「postgresql」 「Миграция」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 jumper423/migration-mysql-to-postgresql 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 jumper423/migration-mysql-to-postgresql 我们能提供哪些服务?
定制开发 / 二次开发

基于 jumper423/migration-mysql-to-postgresql 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 40
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 2016-06-02