The invention relates to the technical field of
database management and
data migration, and discloses a
database metadata migration method, device, equipment and medium, comprising: configuring a
metadata type mapping correspondence between a source
database and a
target database, establishing a source database read connection and a
target database write connection, and obtaining a
source data definition statement of the source database, storing the
source data definition statement in a standard format, reading the
source data definition statement from the
intermediate storage medium, converting the source data definition statement into a target data definition statement conforming to the grammar specification of the
target database, and finally executing the target data definition statement in the target database to complete the creation of the
metadata object. By introducing the
metadata type mapping corresponding relation and the standardized storage mechanism, the metadata difference between the heterogeneous databases is converted into a conversion process capable of being automatically processed, so that manual intervention is reduced, the migration error rate is reduced, and the
automation level and reliability of database metadata migration are improved.