Database-based data processing method, device, electronic device and medium

Through the data processing method implemented in the database management system, using identification information verification and permission management, the security problem of database data query and transmission is solved, and the convenience of data query and transmission is achieved without reducing security. sex.

CN112307515BActive Publication Date: 2024-08-27RUN TECH CO LTD BEIJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011360479.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-08-27
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

The existing technology cannot realize the convenience of database data query and transmission on the premise of ensuring the security of knowledge base content, and lacks effective management methods.

Method used

Through the data processing method executed by the database management system, the identification information of the application is obtained for validity verification, the path information of the data query request is determined, and the data to be queried is obtained and transmitted from the database according to the permissions, using identification information verification and permission management mechanisms. Ensure safety.

Benefits of technology

On the premise of ensuring the security of database content, the security and convenience of data query and transmission are achieved, and the legality and security of database access are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112307515B
    Figure CN112307515B
Patent Text Reader

Abstract

The embodiments of the present invention disclose a data processing method, device, electronic device and medium based on a database. The method comprises: obtaining a data query request sent by any application, and determining the identification information of the application according to the data query request; performing a validity check on the identification information, and if the check passes, determining the path information of the data to be queried according to the data query request; wherein the path information includes a database interface name and / or a database table name; determining whether the application has the authority to access the path information according to the identification information, and if so, obtaining the data to be queried from the database according to the path information, and sending the data to be queried to the application. The embodiments of the present invention achieve the effect of performing data query and transmission based on a database while ensuring the security of the database content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a data processing method, device, electronic device and medium based on a database. Background Art

[0002] The knowledge base is a knowledge-based and intelligent system that provides efficient and convenient knowledge data support for business systems. The content of the knowledge base is its core value, so the content security of the knowledge base is of vital importance.

[0003] There is no mature management method in the prior art that can ensure the security of the knowledge base content without affecting the convenient data query and transmission of the knowledge base. Summary of the invention

[0004] The embodiments of the present application disclose a data processing method, device, electronic device and medium based on a database to improve the security of data query and transmission based on a database.

[0005] In a first aspect, an embodiment of the present invention provides a data processing method based on a database, which is executed by a database management system, and the method includes:

[0006] Obtaining a data query request sent by any application, and determining identification information of the application according to the data query request;

[0007] Performing a validity check on the identification information, and if the check passes, determining the path information of the data to be queried according to the data query request; wherein the path information includes a database interface name and / or a database table name;

[0008] Determine whether the application has permission to access the path information according to the identification information, and if so, obtain the data to be queried from the database according to the path information, and send the data to be queried to the application.

[0009] In a second aspect, an embodiment of the present invention provides a data processing device based on a database, which is configured in a database management system, and the device includes:

[0010] An identification information acquisition module, used to acquire a data query request sent by any application, and determine the identification information of the application according to the data query request;

[0011] A path information acquisition module, used to perform validity verification on the identification information, and if the verification passes, determine the path information of the data to be queried according to the data query request; wherein the path information includes a database interface name and / or a database table name;

[0012] The module for obtaining data to be queried is used to determine whether the application has the authority to access the path information according to the identification information, and if so, obtain the data to be queried from the database according to the path information, and send the data to be queried to the application.

[0013] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:

[0014] one or more processors;

[0015] a storage device for storing one or more programs,

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the database-based data processing method as described in any one of the embodiments of the present invention.

[0017] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements a database-based data processing method as described in any one of the embodiments of the present invention.

[0018] The embodiment of the present invention achieves the effect of performing data query and transmission based on a database while ensuring the security of the database content. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A flowchart of a data processing method based on a database provided in Embodiment 1 of the present invention;

[0021] Figure 2 A flowchart of a data processing method based on a database provided in Embodiment 2 of the present invention;

[0022] Figure 3 A schematic diagram of the structure of a data processing device based on a database provided in Embodiment 3 of the present invention;

[0023] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0024] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only structures related to the embodiments of the present invention are shown in the accompanying drawings, rather than all structures.

[0025] Embodiment 1

[0026] Figure 1 This is a flowchart of a method for data processing based on a database provided in the first embodiment of the present invention. This embodiment is applicable to any application that performs data query in a database. The method can be executed by a data processing device based on a database provided in the embodiment of the present invention. The device is configured in a database management system and can be implemented by software and / or hardware. Figure 1 As shown, the method may include:

[0027] Step 101: Obtain a data query request sent by any application, and determine identification information of the application according to the data query request.

[0028] The application can be installed in any device with an intelligent operating system, including but not limited to smart phones, tablet computers or laptops, etc. The database management system communicates with the application and can receive instructions or information sent by any application. Optionally, in order to ensure the security of data query and transmission, the device with the application installed and the database management system are in the same local area network. In other words, applications in other local area networks cannot communicate with the local local area network. The identification information of the application is unique, that is, different applications correspond to different identification information, and the identification information includes but is not limited to the application name or application serial number, etc.

[0029] In one embodiment, the application generates a data query request according to a predetermined encapsulation format, and sends the data query request to a database management system based on a pre-established communication connection. The database management system parses the data query request according to a predetermined decapsulation format to obtain identification information of the source application included in the data query request.

[0030] By obtaining a data query request sent by any application and determining the identification information of the application based on the data query request, a data foundation is laid for the subsequent validity verification of the identification information.

[0031] Step 102: Perform validity check on the identification information. If the check passes, determine the path information of the data to be queried according to the data query request; wherein the path information includes a database interface name and / or a database table name.

[0032] The database interface is a technology that enables the database to communicate with the outside world, including but not limited to Java database connection or open database interconnection, etc. The database table is a grid virtual table that temporarily stores data and plays the role of recording data in the database.

[0033] In one embodiment, the database management system verifies the validity of the identification information, and the verification method includes but is not limited to matching verification in the permission blacklist and / or permission whitelist. If the verification passes, it means that the application is a trusted application and has the qualification to access the database, and then the data query request is parsed according to the predetermined decapsulation format to obtain the path information included in the data query request.

[0034] By verifying the validity of the identification information, if the verification passes, the path information of the data to be queried is determined according to the data query request, thereby achieving the effect of verifying the legitimacy of the source application and ensuring the security of database access.

[0035] Step 103: determine whether the application has permission to access the path information according to the identification information, and if so, obtain the data to be queried from the database according to the path information, and send the data to be queried to the application.

[0036] In one embodiment, the access permission blacklist and / or access permission whitelist corresponding to the path information is determined based on the path information, and a matching check is performed in the access permission blacklist and / or access permission whitelist based on the identification information, including but not limited to the access permission blacklist and / or access permission whitelist of the database interface, and / or, the access permission blacklist and / or access permission whitelist of the database table, etc. If the check is passed, it means that the application has the permission to access the target path of the database, such as a database interface and / or database table, and then data is retrieved from the database based on the path information to determine the data to be queried that the application wants to obtain, and the data to be queried is encapsulated in a preset encapsulation format, optionally including JSON format, and the encapsulated data to be queried is sent to the application.

[0037] By determining whether the application has the authority to access the path information based on the identification information, if so, obtaining the data to be queried from the database based on the path information, and sending the data to be queried to the application, the effect of feeding back the data to be queried to the application is achieved.

[0038] The technical solution provided by the embodiment of the present invention verifies the validity of the identification information of the application. If the verification passes, it determines whether the application has the permission to access the path information based on the identification information. If so, it obtains the data to be queried from the database based on the path information and sends the data to be queried to the application, thereby achieving the effect of data query and transmission based on the database while ensuring the security of the database content.

[0039] Based on the above embodiment, before "obtaining the data to be queried from the database according to the path information" in step 103, three steps A, B and C are included:

[0040] A. Obtain a ciphertext of a database password from a configuration file of the database; wherein the ciphertext of the database password is obtained by encrypting the database password using a first preset public key.

[0041] The database password is the authentication information required to connect to the data.

[0042] In one embodiment, the relevant technicians pre-encrypt the database password using a first preset public key and an encryption algorithm, wherein the encryption algorithm includes but is not limited to encryption using the Advanced Encryption Standard, obtain the database password ciphertext, and write the database password ciphertext into a configuration file associated with the database. The database management system accesses the configuration file of the database and obtains the database password ciphertext from the preset field.

[0043] B. Decrypt the database password ciphertext using the first preset private key corresponding to the first preset public key to obtain the database password.

[0044] In one embodiment, the database management system uses a first preset private key corresponding to a first preset public key pre-stored locally and a decryption algorithm to decrypt the database ciphertext, wherein the decryption algorithm includes but is not limited to using the Advanced Encryption Standard to decrypt to obtain the original text of the database password.

[0045] C. Establishing a communication connection with the database through the database password.

[0046] In one implementation, the database management system calls the communication connection interface of the database and establishes a communication connection with the database through a database password.

[0047] By obtaining the database password ciphertext from the database configuration file, using the first preset private key corresponding to the first preset public key to decrypt the database password ciphertext to obtain the database password, and establishing a communication connection with the database through the database password, illegal systems are prevented from maliciously connecting to the database, thereby ensuring the security of the database content.

[0048] Based on the above embodiment, the method further includes three steps D, E and F:

[0049] D. Receive data update ciphertext sent by other database management systems; wherein the data update ciphertext is obtained by encrypting the data update content by the other database management system using a second preset public key.

[0050] In one embodiment, the other database management system encrypts the data update content through the second preset public key and encryption algorithm, wherein the encryption algorithm includes but is not limited to encryption using the advanced encryption standard, obtains the data update ciphertext, and outputs the data update ciphertext to the encryption output path, including but not limited to / kbms / dest, etc. Then, the other database management system sends the data update ciphertext to the file import directory of the local database management system, including but not limited to / kbms / imp, etc., wherein the other database management system and the local database management system can be in the same local area network or in different local area networks. If they are in different local area networks, the data update ciphertext can be sent to the local database management system manually, or the data update ciphertext can be sent to the local database management system by the method of router port mapping.

[0051] E. Decrypt the data update ciphertext using the second preset private key corresponding to the second preset public key to obtain the data update content.

[0052] In one embodiment, the local database management system uses a second preset private key corresponding to a locally pre-stored second preset public key and a decryption algorithm to decrypt the data update ciphertext, wherein the decryption algorithm includes but is not limited to using the Advanced Encryption Standard to decrypt to obtain the original text of the data update content.

[0053] F. Sending the data update content to a database so that the database stores the data update content.

[0054] In one implementation, the local database management system transmits the updated data content to the database, and the database stores the updated data content.

[0055] By receiving the data update ciphertext sent by other database management systems, using the second preset private key corresponding to the second preset public key to decrypt the data update ciphertext to obtain the data update content, and using the second preset private key corresponding to the second preset public key to decrypt the data update ciphertext to obtain the data update content, the security of database content update is ensured.

[0056] Embodiment 2

[0057] Figure 2This is a flowchart of a data processing method based on a database provided in Embodiment 2 of the present invention. This embodiment is optimized based on the above optional embodiments, such as Figure 2 As shown, the method may include:

[0058] Step 201: Obtain a data query request sent by any application, and determine identification information of the application according to the data query request.

[0059] Step 202: perform validity check on the identification information. If the check passes, determine the path information of the data to be queried according to the data query request; wherein the path information includes the database interface name and / or the database table name; otherwise, generate an unregistered identification prompt message, and send the unregistered identification prompt message to the application.

[0060] Exemplarily, the unregistered identification prompt information may include "The application identification information is not registered, please verify" and the like.

[0061] Step 203: Match the identification information in the interface permission whitelist corresponding to the database interface name to determine whether the identification information is stored in the interface permission whitelist.

[0062] For example, assuming that the identification information stored in the interface permission whitelist corresponding to the database interface name is 0001, 0002, 0003, and 0004. Assuming that the identification information of the application is 0001, it means that the application has the permission to access the database interface; assuming that the identification information of the application is 0005, it means that the application does not have the permission to access the database interface.

[0063] Step 204, if not, execute step 205, if yes, execute step 206.

[0064] Step 205: Generate interface access prohibition information, and send the interface access prohibition information to the application.

[0065] For example, assuming that the database interface is A, the interface access prohibition information may be "the application does not have access rights to the database interface A".

[0066] Step 206: Match the identification information in the database table permission whitelist corresponding to the database table name to determine whether the identification information is stored in the database table permission whitelist.

[0067] For example, assuming that the identification information stored in the database table permission whitelist corresponding to the database table name is 0001, 0002, 0003, and 0004. Assuming that the identification information of the application is 0001, it means that the application has the permission to access the database table; assuming that the identification information of the application is 0005, it means that the application does not have the permission to access the database table.

[0068] Step 207, if not, execute step 208, if yes, execute step 209.

[0069] Step 208: Generate database table access prohibition information, and send the database table access prohibition information to the application.

[0070] For example, assuming that the database table is B, the database table access prohibition information may be "the application does not have access rights to database table B".

[0071] Step 209: determine whether the application has permission to access the path information, obtain the data to be queried from the database according to the path information, and send the data to be queried to the application.

[0072] The technical solution provided by the embodiment of the present invention verifies the validity of the identification information, matches the identification information in the interface permission whitelist corresponding to the database interface name, and matches the identification information in the database table permission whitelist corresponding to the database table name. If both pass the verification, the data to be queried is obtained from the database and fed back to the application, thereby achieving the effect of data query and transmission based on the database under the premise of ensuring the security of the database content.

[0073] On the basis of the above-mentioned embodiment, the database in this embodiment adopts an MPP (Massively Parallel Processing) type database, so as to facilitate efficient query and retrieval of the database.

[0074] Based on the above embodiment, the database in this embodiment includes but is not limited to a data query interface, a data addition interface, a data editing interface, a data deletion interface, and a custom SQL (Structured Query Language) interface. And each interface is in a unified format, including but not limited to the HTTP POST request method, and the input parameter is set to JSON format.

[0075] Embodiment 3

[0076] Figure 3This is a schematic diagram of the structure of a data processing device based on a database provided in the third embodiment of the present invention, which can execute a data processing method based on a database provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Figure 3 As shown, the device may include:

[0077] The identification information acquisition module 31 is used to acquire a data query request sent by any application and determine the identification information of the application according to the data query request;

[0078] A path information acquisition module 32 is used to perform validity verification on the identification information, and if the verification passes, determine the path information of the data to be queried according to the data query request; wherein the path information includes a database interface name and / or a database table name;

[0079] The to-be-queried data acquisition module 33 is used to determine whether the application has the authority to access the path information according to the identification information, and if so, to obtain the to-be-queried data from the database according to the path information, and send the to-be-queried data to the application.

[0080] Optionally, the to-be-queried data acquisition module 33 is specifically used to:

[0081] Matching the identification information in the interface permission whitelist corresponding to the database interface name, and determining whether the identification information is stored in the interface permission whitelist;

[0082] If so, matching the identification information in the database table permission whitelist corresponding to the database table name to determine whether the identification information is stored in the database table permission whitelist;

[0083] If so, it is determined that the application has permission to access the path information.

[0084] Optionally, the device further includes a first access prohibition information sending module, which is specifically configured to:

[0085] If the identification information is not stored in the interface permission whitelist, generating interface access prohibition information, and sending the interface access prohibition information to the application;

[0086] The device further includes a second access prohibition information sending module, which is specifically configured to:

[0087] If the identification information is not stored in the database table permission whitelist, generating database table access prohibition information, and sending the database table access prohibition information to the application;

[0088] The device also includes a prompt information sending module, which is specifically used to:

[0089] If the identification information verification fails, an identification unregistered prompt message is generated and the identification unregistered prompt message is sent to the application.

[0090] Optionally, the device further includes a communication connection module, specifically configured to:

[0091] Obtaining a database password ciphertext from a configuration file of the database; wherein the database password ciphertext is obtained by encrypting the database password using a first preset public key;

[0092] Decrypting the database password ciphertext using the first preset private key corresponding to the first preset public key to obtain the database password;

[0093] A communication connection is established with the database through the database password.

[0094] Optionally, the device further includes a data updating module, specifically configured to:

[0095] Receiving data update ciphertext sent by other database management systems; wherein the data update ciphertext is obtained by encrypting the data update content by the other database management system using a second preset public key;

[0096] Decrypting the data update ciphertext using the second preset private key corresponding to the second preset public key to obtain the data update content;

[0097] The data update content is sent to a database, so that the database stores the data update content.

[0098] A data processing device based on a database provided in an embodiment of the present invention can execute a data processing method based on a database provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the data processing method based on a database provided in any embodiment of the present invention.

[0099] Embodiment 4

[0100] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Figure 4 A block diagram of an exemplary electronic device 400 suitable for implementing embodiments of the present invention is shown. Figure 4 The electronic device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0101] like Figure 4As shown, the electronic device 400 is in the form of a general computing electronic device. The components of the electronic device 400 may include but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 connecting different system components (including the system memory 402 and the processing unit 401).

[0102] Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0103] The electronic device 400 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 400, including volatile and non-volatile media, removable and non-removable media.

[0104] System memory 402 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 404 and / or cache memory 405. Electronic device 400 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 406 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 403 via one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0105] A program / utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 407 generally perform the functions and / or methods of the embodiments described herein.

[0106] The electronic device 400 may also communicate with one or more external electronic devices 409 (e.g., keyboards, pointing electronic devices, displays 410, etc.), may also communicate with one or more electronic devices that enable a user to interact with the electronic device 400, and / or communicate with any electronic device (e.g., a network card, a modem, etc.) that enables the electronic device 400 to communicate with one or more other computing electronic devices. Such communication may be performed via an input / output (I / O) interface 411. In addition, the electronic device 400 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 412. As shown, the network adapter 412 communicates with other modules of the electronic device 400 via a bus 403. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 400, including but not limited to: microcode, electronic device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0107] The processing unit 401 executes various functional applications and data processing by running the program stored in the system memory 402, for example, implementing the database-based data processing method provided in the embodiment of the present invention, including:

[0108] Obtaining a data query request sent by any application, and determining identification information of the application according to the data query request;

[0109] Performing a validity check on the identification information, and if the check passes, determining the path information of the data to be queried according to the data query request; wherein the path information includes a database interface name and / or a database table name;

[0110] Determine whether the application has permission to access the path information according to the identification information, and if so, obtain the data to be queried from the database according to the path information, and send the data to be queried to the application.

[0111] Embodiment 5

[0112] Embodiment 5 of the present invention further provides a computer-readable storage medium, wherein the computer-executable instructions are used to execute a data processing method based on a database when executed by a computer processor, the method comprising:

[0113] Obtaining a data query request sent by any application, and determining identification information of the application according to the data query request;

[0114] Performing a validity check on the identification information, and if the check passes, determining the path information of the data to be queried according to the data query request; wherein the path information includes a database interface name and / or a database table name;

[0115] Determine whether the application has permission to access the path information according to the identification information, and if so, obtain the data to be queried from the database according to the path information, and send the data to be queried to the application.

[0116] Of course, a storage medium containing computer executable instructions provided by an embodiment of the present invention, whose computer executable instructions are not limited to the method operations described above, can also perform related operations in a data processing method based on a database provided by any embodiment of the present invention. The computer-readable storage medium of an embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0117] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0118] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0119] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0120] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A data processing method based on a database, characterized in that: Executed by a database management system, the method includes: Obtaining a data query request sent by any application, and determining identification information of the application according to the data query request; Performing a validity check on the identification information, and if the check passes, determining the path information of the data to be queried according to the data query request; wherein the path information includes a database interface name and / or a database table name; Determine whether the application has permission to access the path information according to the identification information, and if so, obtain the data to be queried from the database according to the path information, and send the data to be queried to the application; Before obtaining the data to be queried from the database according to the path information, the following steps are included: Obtaining a database password ciphertext from a configuration file of the database; wherein the database password ciphertext is obtained by encrypting the database password using a first preset public key; Decrypting the database password ciphertext using the first preset private key corresponding to the first preset public key to obtain the database password; Establishing a communication connection with the database through the database password; Receiving data update ciphertext sent by other database management systems; wherein the data update ciphertext is obtained by encrypting the data update content by the other database management system using a second preset public key; Decrypting the data update ciphertext using the second preset private key corresponding to the second preset public key to obtain the data update content; Sending the data update content to a database so that the database stores the data update content; If they are in different local area networks, the data update ciphertext is sent to the local database management system manually or through a router port mapping method.

2. The method according to claim 1, characterized in that Determining whether the application has permission to access the path information according to the identification information includes: Matching the identification information in the interface permission whitelist corresponding to the database interface name, and determining whether the identification information is stored in the interface permission whitelist; If so, matching the identification information in the database table permission whitelist corresponding to the database table name to determine whether the identification information is stored in the database table permission whitelist; If so, it is determined that the application has permission to access the path information.

3. The method according to claim 2, characterized in that After determining whether the identification information is stored in the interface permission whitelist, the method further includes: If not, generate interface access prohibition information, and send the interface access prohibition information to the application; After determining whether the identification information is stored in the database table permission whitelist, the method includes: If not, generating database table access prohibition information, and sending the database table access prohibition information to the application; After the validity check of the identification information is performed, it includes: If the verification fails, an unregistered identification prompt message is generated and sent to the application.

4. A data processing device based on a database, characterized in that: Configured in a database management system, the device includes: An identification information acquisition module, used to acquire a data query request sent by any application, and determine the identification information of the application according to the data query request; A path information acquisition module, used to perform validity verification on the identification information, and if the verification passes, determine the path information of the data to be queried according to the data query request; wherein the path information includes a database interface name and / or a database table name; A module for obtaining data to be queried, used to determine whether the application has permission to access the path information according to the identification information, and if so, obtain the data to be queried from a database according to the path information, and send the data to be queried to the application; A communication connection module, used to obtain a database password ciphertext from a configuration file of a database; wherein the database password ciphertext is obtained by encrypting the database password with a first preset public key; decrypting the database password ciphertext with a first preset private key corresponding to the first preset public key to obtain the database password; and establishing a communication connection with the database through the database password; A data update module, configured to receive data update ciphertext sent by other database management systems; wherein the data update ciphertext is obtained by encrypting data update content by the other database management system using a second preset public key; decrypting the data update ciphertext using a second preset private key corresponding to the second preset public key to obtain the data update content; and sending the data update content to a database so that the database stores the data update content; If they are in different local area networks, the data update ciphertext is sent to the local database management system manually or through a router port mapping method.

5. The device according to claim 4, characterized in that The to-be-queried data acquisition module is specifically used for: Matching the identification information in the interface permission whitelist corresponding to the database interface name, and determining whether the identification information is stored in the interface permission whitelist; If so, matching the identification information in the database table permission whitelist corresponding to the database table name to determine whether the identification information is stored in the database table permission whitelist; If so, it is determined that the application has permission to access the path information.

6. The device according to claim 5, characterized in that The device further includes a first access prohibition information sending module, which is specifically configured to: If the identification information is not stored in the interface permission whitelist, generating interface access prohibition information, and sending the interface access prohibition information to the application; The device further includes a second access prohibition information sending module, which is specifically configured to: If the identification information is not stored in the database table permission whitelist, generating database table access prohibition information, and sending the database table access prohibition information to the application; The device also includes a prompt information sending module, which is specifically used to: If the identification information verification fails, an identification unregistered prompt message is generated and the identification unregistered prompt message is sent to the application.

7. An electronic device, characterized in that: The electronic device further comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the database-based data processing method as described in any one of claims 1 to 3.

8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the database-based data processing method as described in any one of claims 1 to 3 is implemented.