A data processing method and device for a distributed database, a storage medium, and an electronic device. The method comprises: a database import and export management node acquiring, after receiving an export request for exporting data in a distributed database, a current-time active transaction list and distribution information of an export table; the database import and export management node notifying, according to the distribution information of the export table, a corresponding database to execute a data export operation; the database import and export management node sending, after determining that the corresponding database completes the execution of the data export operation, the active transaction list to a database proxy node of the corresponding database; and the database import and export management node importing, after receiving a data consistency reverse compensation statement, the data exported by the corresponding database into a predetermined database, and instructing the predetermined database to execute the data consistency reverse compensation statement.
展开▼