Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

MySQL access auditing method and system, storage medium and terminal

A terminal and memory technology, applied in computing, computer security devices, special data processing applications, etc., can solve problems such as loss of database performance, impact of disk space, lack of auditing functions, etc., and achieve the effect of small performance loss

Pending Publication Date: 2020-01-10
SHANGHAI QINGGAN INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] MySQL itself has provided a detailed SQL execution record - general binlog, but enabling it has the following disadvantages: no matter whether the SQL has grammatical errors or not, as long as it is executed, there will be records, resulting in a large amount of useless information being recorded, making it difficult to filter later; When the amount of SQL concurrency is large, the log records will have a certain impact on the disk, which will reduce the efficiency of the MySQL database; the log file is easy to expand rapidly, and if it is not handled properly, it will have a certain impact on the disk space
Since the key to auditing lies in DML statements, and all DML statements can be recorded through binlog, but currently only the connection ID that generated this record is recorded in binlog, which is not helpful for auditing
Some audit plug-ins are provided in the prior art to monitor the access status of the MySQL database in the production environment, monitor and record various operating behaviors on the MySQL database, and analyze the access to the MySQL database in real time and intelligently by analyzing network data. Various operations are recorded in the audit database for future query, analysis, and filtering to realize monitoring and auditing of user operations in the target database system, such as the audit plug-in and audit audit plug-in provided by oracle, but this audit function is only available to enterprises The existing MySQL database of the community edition does not have the auditing function, and the MySQL database of the enterprise edition will lose the performance of the database when the auditing function is enabled.

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 access auditing method and system, storage medium and terminal
  • MySQL access auditing method and system, storage medium and terminal
  • MySQL access auditing method and system, storage medium and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, in the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.

[0032] It should be noted that the diagrams provided in the following embodiments are only schematically illustrating the basic ideas of the present invention, and only the components related to the present invention are shown in the diagrams rather than the number, shape and shape of the compo...

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 access auditing method and system, a storage medium and a terminal. The MySQL access auditing method comprises the following steps: setting a connection information module so that the connection information module can be executed when a user is connected with a MySQL server, wherein the connection information module is used for recording connection log information ofthe user; acquiring the connection log information based on the connection information module; obtaining operation log information corresponding to the user operation; and performing behavior tracking based on the connection log information and the operation log information, and confirming the user to realize access auditing. On the basis of the connection information module provided by the MySQLcommunity edition, the binlog log information of the MySQL database is combined, so that the auditing function of the MySQL database can be realized; and the connection information module is only executed when the user is connected with the MySQL server, so that the performance of the MySQL database is not greatly influenced, and the performance loss of the MySQL database is very small when the auditing function is started.

Description

technical field [0001] The invention belongs to the field of database auditing, in particular to a method, system, storage medium and terminal for MySQL access auditing. Background technique [0002] MySQL has an enterprise edition and a community edition. If only from the perspective of learning, there is no essential difference between the two. Only when official commercial services are needed will there be a big difference. The community edition will add many new technical aspects that have not been strictly The characteristics of the test are to get feedback and corrections from the majority of community users. The source code of the community version is irregular, and many community users can supplement and correct it. The community version has not been stress tested and performance tested by various proprietary system platforms. There may be technical risks in the compatibility of the developed software and hardware systems. The community version can be regarded as the...

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
IPC IPC(8): G06F16/242G06F16/23G06F21/62
CPCG06F16/2433G06F16/2358G06F21/6227G06F2221/2141
Inventor 陈志华
Owner SHANGHAI QINGGAN INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products