The invention discloses a
database fault self-
recovery method,
system and device and a storage medium, and relates to the field of computers.The method is applied to the
database fault self-
recovery system, a fault
processing module is deployed between an
application layer of the
system and a
database, and the method comprises the steps that in response to a
data processing request, the state of a main database is detected through the fault
processing module; and when the main database is in a fault state, controlling the fuse to be switched to a fusing state so as to transfer the
data processing request to the standby database for
processing. According to the application, the fault processing module is deployed between the
application layer and the database, when the fault processing module detects that the main database is in the fault state, the fuse is controlled to be switched to the fusing state, so that the request is transferred and sent to the standby database to be processed, a complex switching process of a
server cluster is not needed, and the processing efficiency is improved. Instead, the deployed module directly detects the fault, triggers the fusing and transfers the request, so that the
switching time consumption can be shortened, and the service can still run continuously when the main database fails.