In any Yii application, you need to open the main.php file in the protected/config/main.php folder. Now search for the "DB" parameter. In this parameter, you can add the database name, hostname, username, and password for your database server.

BY Best Interview Question ON 31 Jan 2019