ThinkPHP5 uses Phinx for data migration.
- 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.