The present invention provides a
database security control method, apparatus, electronic device, and storage medium, including: sending
database operation and maintenance instructions through a
database operation and maintenance tool, and after the database
soft switch performs security control on the database operation and maintenance instructions, forwarding them to the database; the database
soft switch uses a similarity cycle analysis
algorithm to simulate the database, enabling the database to perform session keep-alive communication with the database operation and maintenance tool; calling the
operating system kernel, and using a multi-threaded mechanism and a fast read-write
data cache queue to perform network traffic collection and analysis. In view of the problem that various database tools need to be customized and developed for database operation and maintenance control, the present invention realizes the centralized control of database operation and maintenance through the database
soft switch, without the need to transform the database tools. At the same time, it solves the problem of maintaining the keep-alive of the database tools during the
waiting period for the approval of the vault triggered by the instructions, and calls the
operating system kernel, uses multi-threading and a fast read-write
data cache queue to improve the traffic
processing ability, ensuring the operation and maintenance efficiency.