The present application relates to the field of
database technology, and in particular to a
database adaptation and debugging method, device, equipment and storage medium, wherein the method comprises:
parsing the acquired
processor mapping to obtain a
parsing result, and obtaining a function use case table based on the
parsing result; replacing the current
SQL statement based on the execution result obtained by executing the current
SQL statement and the
SQL replacement rule to obtain a new SQL statement; in response to the new SQL statement being a preset type statement, building a MySQL statement based on the new SQL statement;
processing the new SQL statement based on the
execution plan of the MySQL statement to obtain a primary
adaptation SQL statement; executing the primary
adaptation SQL statement corresponding to the
record in the function use case table to obtain a target execution
record, and
processing the primary adaptation SQL statement based on the target execution
record to obtain a target adaptation SQL statement. The present application facilitates reducing the
time cost of replacing a foreign
database used by enterprise-level
software with a domestic database.