简体   繁体   English

从本地主机向远程数据库同步/传输数据库太慢

[英]Sync/Transfer DB from Localhost to Remote too slow

I have a large chunk of database available at about 100 GB. 我有大约100 GB的大量数据库可用。 The records would be synced with the remote database. 记录将与远程数据库同步。 Each record must be checked with db online and if not available then to be update/inserted to db. 必须与db在线检查每个记录,如果不可用,则将其更新/插入db。 I have tried some methods to increase the speed but it is transferring at too slow a speed. 我尝试了一些方法来提高速度,但是速度太慢。 The methods I tried are: 我尝试的方法是:

  1. Simple script to match the record and uploading the database to which the speed is very very slow. 简单的脚本来匹配记录并上传数据库,速度非常慢。

  2. Generated MySQL dump then compressed it and transferred to online, then online check and update them. 生成的MySQL转储,然后将其压缩并转移到在线,然后在线检查并更新它们。 The dump was too big to transfer (it was taking a long time to transfer). 转储太大,无法转移(转移时间很长)。

Kindly suggest other methods to transfer the DB. 请提出其他转移数据库的方法。

try mysqldumper : 尝试mysqldumper:

http://sourceforge.net/projects/mysqldumper/files/ http://sourceforge.net/projects/mysqldumper/files/

it can take mysql dump and restore, its awesome its speed is good. 它可以进行mysql dump和restore,其速度非常快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM