The invention provides a code migration method and device, equipment, a storage medium and a program product, and relates to the technical field of computer resource management.The code migration method comprises the steps that a preset path mapping table and a database language mapping table corresponding to a to-be-migrated file are obtained; the path mapping table comprises a mapping relation between the source path and the target path; migrating the file under the source path in the source end to the target path of the target end according to the path mapping table; According to the database language mapping table, converting the database configuration file migrated to the target end from a language suitable for the first database into a language suitable for the second database. According to the scheme provided by the invention, the to-be-migrated code is automatically migrated by utilizing the preset path mapping table and the database language mapping table corresponding to the to-be-migrated file, the code does not need to be rewritten, the method is simple, convenient and quick, the code migration efficiency is improved, and the quality of the migrated code can be ensured.