The contents of mongodb’s data folder are directly copied to another mongodb’s data folder. Can they be used directly?

  mongodb, question

Is it feasible to migrate the database?

It is not very recommended, there may be errors, and repair will be required. you can use mongorestore tool built in mongo to restore or migrate.
Chinese blog
Official documents