How to change database settings


Open file:

/app/Config/database.php

Edit the following codes as per your database settings:

    var $default = array(
        'datasource' => 'Database/Mysql',
        'persistent' => false,
        'host' => 'localhost',
        'login' => 'database_username',
        'password' => 'database_passsword',
        'database' => 'database_name',
        'prefix' => '',
    );

Save and refresh.