MySQL data auditing method and storage medium
A data auditing and database technology, applied in database design/maintenance, digital data processing, structured data retrieval, etc., can solve problems such as increasing the difficulty of MySQL data analysis and query, and achieve the effect of data auditing and supervision
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] Please refer to Figure 2 to Figure 4 , this embodiment provides a MySQL data audit method, which can be used for both MySQL data backtracking and MySQL data backtracking, and does not require business task adjustment, so as to audit and monitor target data more conveniently and accurately .
[0072] Such as Figure 4 As shown, the method of this embodiment may include the following:
[0073] S1: Parse the database binlog log file to obtain a collection of MySQL execution statements.
[0074] Specifically, it is realized by acquiring (synchronizing) the binlog log file of the MySQL database and parsing it into an executable set of plaintext MySQL execution statements.
[0075] Optionally, the set of MySQL execution statements is stored in the form of a list.
[0076] Optionally, use the mysqlbinlog command to parse binlog log files.
[0077] In a specific embodiment, the S1 specifically includes:
[0078] S10: Determine the target time period according to the targ...
Embodiment 2
[0149] This embodiment corresponds to the MySQL data tracking process of Embodiment 1, and provides a specific application scenario:
[0150] Assume player 1 feedback: an item coded 1000 that he once owned suddenly disappeared; I hope the official response to the problem of missing item 1000.
[0151] For game officials, the MySQL data tracking method provided in the first embodiment above can be used for analysis to obtain the circulation process of item 1000 and provide technical support for answering questions.
[0152] Specifically, the data tracking process is as follows:
[0153] 1. Use the user account information "Player 1" to query the user data table, and get his user_id as 1. Among them, the user data table is the data of the current user table in the database, and the format can be shown in Table 1 below:
[0154] id username level score 1 player 1 30 580025 2 player 2 3 1500 3 player 3 2 1500 4 player 4 0 1350 ...
Embodiment 3
[0185] This embodiment corresponds to the MySQL data backtracking situation in Embodiment 1, and provides a specific application scenario:
[0186] Assume that the level experience value of player 1 is 580025, which is rather weird and reaches a value that cannot be reached normally. At this time, if you want to see why the player has reached such a value, you can use the method in Example 1 to perform the following operations;
[0187] It is assumed here that the user account was not created on the same day, but was created a long time ago. Analysis from the time of creation to the current one consumes a lot of resources, so we choose to push back from the current time.
[0188] 1. According to the user account of player 1, the id value of the corresponding user table can be obtained as 1; among them, the user data table is the data of the current user table in the database, and the format can be shown in Table 1 below:
[0189] id username level score 1 ...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com