Database access method and device, computer equipment and storage medium

An access method and database technology, applied in database distribution/replication, computing, electrical digital data processing, etc., can solve problems such as low stability of database access, failure of database access operations, etc.

Pending Publication Date: 2020-01-24
WEIKUN (SHANGHAI) TECH SERVICE CO LTD
View PDF11 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Traditionally, a primary database and a standby database can be set up, and the standby database can synchronize relevant data of the primary database, but the standby database is only used to back up relevant data of the primary database, while database access operations such as reading or writing are still in the primary database Therefore, when the main database crashes, the database access operation will fail, resulting in low stability of database access

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
  • Database access method and device, computer equipment and storage medium
  • Database access method and device, computer equipment and storage medium
  • Database access method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0049] The method provided by this application can be applied as figure 1 shown in the application environment. The terminal 102 communicates with the server 104 through the network. The server communicates with the primary database 106 and the standby database 108, wherein the server 104 first inquires about the state identification of the database after receiving the access request sent by the terminal 102, and when the identification database is not operated separately, it is in an abnormal state, then The server queries the standby database according to the database ...

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 field of data security, in particular to a database access method and device, computer equipment and a storage medium. The database access method comprises the steps: receiving an access request sent by a terminal, and inquiring a database state identifier according to the access request, wherein the database state identifier is used for identifying whether a databaseis subjected to operation separation or not; when it is determined that the database is not subjected to operation separation according to the database state identifier, obtaining a standby database;extracting a data reading identifier corresponding to the standby database, and extracting a request operation identifier corresponding to the access request; judging whether the request operation identifier is a data reading identifier or not; when the request operation identifier is not the data reading identifier, sending rejection information to the terminal; and when the request operation identifier is a data reading identifier, reading the to-be-read data from the standby database, and feeding back the read to-be-read data to the terminal. By adopting the database access method, the database access stability can be improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a database access method, device, computer equipment and storage medium. Background technique [0002] In the field of data processing, different databases are usually established to store data. For example, by establishing a database, data writing and data reading operations can be realized. [0003] Traditionally, a primary database and a standby database can be set up, and the standby database can synchronize relevant data of the primary database, but the standby database is only used to back up relevant data of the primary database, while database access operations such as reading or writing are still in the primary database Therefore, when the main database crashes, the database access operation will fail, resulting in low stability of database access. Contents of the invention [0004] Based on this, it is necessary to address the above technical problems and...

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/2455G06F16/27
CPCG06F16/2455G06F16/24552G06F16/27
Inventor 丁智渊
Owner WEIKUN (SHANGHAI) TECH SERVICE CO LTD
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