Home >PHP Framework >YII >Where is the yii database configuration file?

Where is the yii database configuration file?

尚
Original
2020-03-11 15:47:314397browse

Where is the yii database configuration file?

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;

Where is the yii database configuration file?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn