yii database configuration file:
The public database is in /common/config/main-local.php
Generally configure this one That’s it. If you don’t use the same frontend and backend,
The frontend is in /frontend/config/main-local.php
The backend is in /backend/config/main-local.php
Configuration database:
First find common>config>main-local.php in the current directory
Open main-local.php for modification, and change yii2advanced to your own database , mine is the newly created yii2;
Recommended related tutorials: yii framework
The above is the detailed content of Where is the yii database configuration file?. For more information, please follow other related articles on the PHP Chinese website!