ThinkPHP5 data migration migration

ThinkPHP5 uses Phinx for data migration.

  1. When executing php think migrate:run , the database configuration file needs to be loaded. It only loads from the default location, so if the configuration file path is customized, it will prompt that the database cannot be connected.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325392528&siteId=291194637