Supercharge Your Innovation With Domain-Expert AI Agents!

MySQL database increment synchronization implementation method based on binary log analysis

An implementation method and incremental synchronization technology, applied in the direction of database update, database distribution/replication, structured data retrieval, etc., can solve problems such as high network load, inability to achieve update, delete, business impact, etc.

Pending Publication Date: 2020-03-13
INSPUR SOFTWARE CO LTD
View PDF10 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] However, each of the above methods has certain disadvantages: the trigger method requires the business table to create a trigger, which has a certain impact on the business, and at the same time, it cannot implement update and delete operations for tables without primary keys
Full table delete insertion method, high network load, high performance cost, unable to reflect the historical state of the data

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
  • MySQL database increment synchronization implementation method based on binary log analysis
  • MySQL database increment synchronization implementation method based on binary log analysis
  • MySQL database increment synchronization implementation method based on binary log analysis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0032] Such as figure 1 As shown, the MySQL database incremental synchronization implementation method based on binary log parsing of the present invention obtains and restores the incremental data of the MySQL database source library by reading and parsing the binary log files of MySQL, and the incremental data after parsing is converted to The string form is temporarily stored in the CMSP message queue. With the help of CMSP's encrypted and compressed transmission, the encrypted and compressed message queue transmitted by the CMSP at the storage end is analyzed to realize the data synchronization of the MySQL database from the source database to the MySQL database target database.

[0033] The implementation of the MySQL database incremental synchronization implementation method based on binary log parsing of the present invention firstly installs the MySQL data acquisition module and the MySQL storage module.

[0034] MySQL's binary log file records operations on database t...

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 discloses a MySQL database increment synchronization implementation method based on binary log analysis, and belongs to the technical field of database data acquisition. The MySQL database increment synchronization implementation method based on binary log analysis comprises the following steps of: reading and analyzing a binary log file of MySQL; obtaining and recovering incrementaldata of a MySQL database source library; and temporarily storing the analyzed incremental data in a CMSP message queue in a character string form, and analyzing the encrypted and compressed transmitted message queue transmitted by the CMSP at a storage end by means of encrypted and compressed transmission of the CMSP, thereby realizing data synchronization of the MySQL database from a source library to a target library of the MySQL database. The MySQL database increment synchronization realization method based on binary log analysis is efficient and safe, can realize data addition, deletion,modification and increment synchronization of whether the database has a primary key, and has good popularization and application values.

Description

technical field [0001] The invention relates to the technical field of database data acquisition, and specifically provides a method for implementing MySQL database incremental synchronization based on binary log analysis. Background technique [0002] With the rapid development of the information age and the rise of big data and artificial intelligence, data, as a resource, is increasingly valued by some enterprises and units, and the economic and social value of data output is becoming more and more obvious. In today's society, enterprise data is becoming more and more large and complex, showing the characteristics of huge data volume, various types of data including structured data and unstructured data, and single data storage, which will inevitably bring hidden dangers to data security and unreliability. Therefore, Data synchronization and backup are becoming more and more important. [0003] The commonly used synchronization methods for MySQL databases are as follows:...

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 Applications(China)
IPC IPC(8): G06F16/23G06F16/27
CPCG06F16/2365G06F16/27Y02D10/00
Inventor 苗亚囡曹景亮李朝铭
Owner INSPUR SOFTWARE CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More