The invention relates to a
database fault
recovery method and device, a storage medium and
electronic equipment. The method comprises the steps that when a
database normally runs, a WAL log is written into a disk, and meanwhile, a log
record is pre-analyzed through a background asynchronous thread to extract core
semantic information of the log
record; constructing a cache structure sorted according to table space identifiers and
data page numbers in the
shared memory, and storing the core
semantic information in the cache structure in a
recovery-oriented compact format; when the
check point is executed, the memory
dirty page is flashed to a disk, and the cache initial position corresponding to the
check point in the cache structure serves as
metadata to be written into a control file; and after the
database crashes and is restarted, acquiring a cache initial position from the control file, loading all core
semantic information entries behind the cache initial position in the cache structure according to the cache initial position, positioning a target
data page, and modifying the target
data page. The technical problem that an existing database collapse
recovery technology is low in recovery speed is solved.