In 'config/main.php' file we have database setting in yii for set or change database open main.php file and search 'db' you will see something like this
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=mydb',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
),
here you can change your database host, name,username and password
0 Comment(s)