Mysql database horizontal segmentation method, mysql connection establishment method and device

A horizontal segmentation and connection establishment technology, applied in the field of MYSQL data storage, can solve problems such as the inability to re-segment the MYSQL database, large business impact, and difficult data migration, and achieve good scalability, disaster prevention, flexible segmentation and The effect of migration

Inactive Publication Date: 2016-06-29
UCWEB
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in this case, since the client segmentation rules are hard-coded, when re-segmenting the MYSQL database, all client segmentation rules need to be changed, making it almost impossible to re-segment the MYSQL database
[0006] In addition, regardless of the MYSQL proxy scheme with dispatch rules or the client dispatch scheme, data migration will be difficult
Moreover, during the migration process, the service of the entire database cluster needs to be stopped, which has a great impact on the business

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 horizontal segmentation method, mysql connection establishment method and device
  • Mysql database horizontal segmentation method, mysql connection establishment method and device
  • Mysql database horizontal segmentation method, mysql connection establishment method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Various aspects of the disclosure are described below. It should be appreciated that the teachings herein may be embodied in a wide variety of forms and that any specific structure, function, or both disclosed herein are merely representative. Based on the teachings herein one skilled in the art should appreciate that an aspect disclosed herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented or a method practiced using any number of the aspects set forth herein. In addition, such an apparatus may be implemented or such a method may be practiced with other structure, functionality, or structure and functionality in addition to or in addition to one or more of the aspects set forth herein. Additionally, any aspect described herein may comprise at least one element of a claim.

[0038] Various embodiments of the present invention will be described bel...

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 provides a MySQL database horizontal-sharding method. The method includes: distributing a data ID range (Min(n), Max(n)) for a database in a database cluster according to a preset data ID range distribution strategy; and storing MySQL data to each database with the data ID range including data IDs according to the data IDS of the MySQL data. The letter N is a total of the databases in the database cluster, the Min(n) is a minimum boundary value of the data ID range of the n-th database, and the Max(n) is a maximum boundary value of the data ID range of the n-th database. Through the method, the MySQL databases can be sharded and transferred flexibly and extensibility is improved.

Description

technical field [0001] The invention relates to the field of MYSQL data storage, and more specifically, to a MYSQL database horizontal switching method, a MYSQL connection establishment method and a device. Background technique [0002] As the data stored in MYSQL becomes larger and larger, one MYSQL database cannot store all the data, so the data will inevitably be stored in several MYSQL databases, which requires database sharding. [0003] Database segmentation methods mainly include two types: vertical segmentation and horizontal segmentation. Straight splitting refers to splitting different columns in the database and storing them in different MYSQL databases. Horizontal splitting refers to splitting different rows in the database and storing them in different databases. Since vertical splitting does not have good scalability, horizontal splitting is usually used when splitting MYSQL databases. [0004] At present, the representative open source horizontal segmentati...

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
Inventor 梁捷王尧佳
Owner UCWEB
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products