Shared mysql database backup and recovery method and device
A recovery method and data backup technology, applied in database distribution/replication, database design/maintenance, structured data retrieval, etc., can solve problems such as large local disk space occupation, accelerated data recovery time, long recovery time, etc., to achieve guaranteed Integrity, reduced backup time, reduced stress effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] like figure 1 As shown, the present invention provides a backup and recovery method for a shared mysql database, comprising the following steps:
[0039] S101. Build a ceph distributed storage cluster, create a ceph file system cephfs, and provide two mysql databases as storage; in order to ensure the synchronization and integrity of data, multiple mon nodes can be deployed, and then multiple nodes can be mounted to ensure service availability High availability, when a node is down, it will not affect data reading and writing;
[0040] S102, mount the ceph file system cephfs, and create a data directory; under the data directory, create a full directory and an incre directory, which are respectively used to store full backup data and incremental backup data; under the data directory, create a mysql1 directory and a mysql2 directory , which are used to store the files of two mysql databases, the mysql database socket sock under the mysql1 directory, and the mysql databa...
Embodiment 2
[0048] like image 3 As shown, the present embodiment provides a shared mysql database backup and recovery device, including:
[0049] The storage cluster unit is used to build a ceph distributed storage cluster and create a ceph file system cephfs;
[0050] The database unit is used to provide several databases to store data; the database unit includes a mysql database system module, and the mysql database system module is used to adjust the mysql configuration file; the mysql database system module includes a keepalived module, and the keepalived module uses It is used to detect the heartbeat service of the mysql database in real time;
[0051] A directory creation unit is used to create a data directory, and under the data directory, create a full directory, an incre directory, a mysql1 directory and a mysql2 directory;
[0052] The data backup unit is used to back up data, and the data backup includes full backup, incremental backup and differential backup; the data back...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com