Database upgrading method and device
A database and data technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problem that the database cannot be upgraded smoothly, and achieve the effect of satisfying data page compatibility and using requirements
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] see figure 1 , figure 1 It is a schematic flow diagram of the database upgrading method disclosed in the embodiment of the present invention; as figure 1 As shown, a database upgrade method may include:
[0073] 101. Install the target version database instance.
[0074] It can be understood that the target version database instance is installed in other servers than the server where the original version database instance is located, ie, the target server, and the target version database instance is configured to operate using the target version database (updated version database).
[0075] 102. Perform logical backup on the data of the original version database instance to obtain a logical backup file.
[0076] The original version database instance is installed in the original server different from the target server, and the original version database instance is configured to operate using the original version database. And configure the VIP address in the databas...
Embodiment 2
[0098] see Figure 2 to Figure 4 , figure 2 It is another schematic flowchart of the database upgrading method disclosed in the embodiment of the present invention, image 3It is a schematic diagram of generating a database instance disclosed in the embodiment of the present invention, Figure 4 It is a schematic diagram of database instance switching disclosed in the embodiment of the present invention. figure 2 In the database upgrading method shown, MySQL is taken as an example to describe, wherein, MySQL is a relational database management system in a client (Client) and server (Server) mode, and the database where the server is located is upgraded, specifically as follows figure 2 The database upgrade method shown may include the following steps:
[0099] 201. Install the stable target version of mysql 5.7 slave and keepalived thread on the target server. The VIP set is the same as the IP of the original server in the business code configuration, and the master-slav...
Embodiment 3
[0123] see Figure 5 , Figure 5 It is a schematic structural diagram of the database upgrading device disclosed in the embodiment of the present invention; as Figure 5 Shown, a kind of database upgrading device can comprise:
[0124] An installation unit 510, configured to install a target version database instance;
[0125] Logical backup unit 520, used for logically backing up the data of the original version database instance to obtain a logical backup file;
[0126] An import unit 530, configured to import the logical backup file into the database instance of the target version;
[0127] An upgrading unit 540, configured to start the database instance of the target version to upgrade the database;
[0128] The switching unit 550 is configured to close the database instance of the original version, and use the VIP address to switch services from the database instance of the original version to the database instance of the target version.
[0129] In the embodiment of...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


