Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, device and system for database synchronization

A synchronization device and data synchronization technology, applied in the Internet field, can solve the problems of unable to guarantee data synchronization of MySql, unable to persist data, unable to achieve zero loss, etc.

Inactive Publication Date: 2018-09-25
上海天脉聚源文化传媒有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In order to avoid the occurrence of the above situation, the data is generally synchronized to another server asynchronously by setting up MySql replication. This method can ensure that the data is not completely lost to a certain extent, but its disadvantage is that due to the redo log or binary log data Still in the memory, when the MySql database crashes, the data cannot be persisted. Asynchronous replication cannot guarantee that all MySql data is completely synchronized to another server, and zero loss cannot be achieved.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and system for database synchronization
  • Method, device and system for database synchronization
  • Method, device and system for database synchronization

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0039] figure 1 It is a flow chart of the steps of the database synchronization method of an embodiment of the present invention, such as figure 1 Shown, the synchronous method of database of the present invention comprises the steps:

[0040] Step 100, setting up an independent synchronization device. In this step, a synchronization device independent of the primary database 10 and the standby database 20 is provided, and the synchronization device communicates with the primary database 10 and the standby database 20 respectively.

[0041] Step 200, the synchronization device sends a synchronization request. In this step, the synchronization device sends a synch...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of internet and especially relates to a method, a device and a system for synchronizing databases. The synchronizing method comprises the following steps: arranging a synchronizing device independent from a main database and a spare database and respectively communicating the synchronizing device with the main database and the spare database; sending a synchronizing request to the main database by the synchronizing device; responding to the synchronizing request by the main database and sending a synchronizing log of the main database to the synchronizing device; analyzing the synchronizing log by the synchronizing device and acquiring data changing information of the main database; sending the acquired data changing information to the spare database by the synchronizing device and performing data synchronization on the main and spare databases according to the data changing information. Through the synchronizing device provided by the invention, if the main database collapses during the synchronizing process, the data backup does not depend on the running state of the main database because the synchronizing log recording the data changing information is stored in the synchronizing device, and the data synchronization is performed by the spare database according to the synchronizing log with zero loss.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a database synchronization method, device and system. Background technique [0002] More and more enterprises use database products such as MySql open source database for data storage and application. In case of a disk failure, the data of the MySql database will be lost. In order to avoid the occurrence of the above situation, the data is generally synchronized to another server asynchronously by setting up MySql replication. This method can ensure that the data is not completely lost to a certain extent, but its disadvantage is that due to the redo log or binary log data Still in memory, when the MySql database crashes, the data cannot be persisted. Asynchronous replication cannot guarantee that all MySql data is fully synchronized to another server, and zero loss cannot be achieved. Contents of the invention [0003] The object of the present invention is to provide a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
CPCG06F16/1815G06F16/27G06F16/275
Inventor 郭建辉
Owner 上海天脉聚源文化传媒有限公司