src/Lumos/Response/ConfigSetting.php
public static function mysql($host, $database, $user, $password, $prefix = null)
    {
        if (is_null($prefix)) {
            $prefixing = 'false';
            $prefix = 'ysf';
        } else {
            $prefixing = 'true';
        }
        //
        $content = Database::set('mysql', $host, $database, $user, $password, $prefixing, $prefix);
        //
        file_put_contents(Application::$root.'config/database.php', $content, 0);
        //
        return true;
    }
public static function mysql($host, $database, $user, $password, $prefix = null)
    {
        if (is_null($prefix)) {
            $prefixing = 'false';
            $prefix = 'ysf';
        } else {
            $prefixing = 'true';
        }
        //
        $content = Database::set('mysql', $host, $database, $user, $password, $prefixing, $prefix);
        //
        file_put_contents(Application::$root.'config/database.php', $content, 0);
        //
        return true;
    }
public static function mysql ( $ host , $ database , $ user , $ password , $ prefix = null ) { if ( is_null ( $ prefix ) ) { $ prefixing = 'false' ; $ prefix = 'ysf' ; } else { $ prefixing = 'true' ; } // $ content = Database :: set ( 'mysql' , $ host , $ database , $ user , $ password , $ prefixing , $ prefix ) ; // file_put_contents ( Application :: $ root . 'config/database.php' , $ content , 0 ) ; // return true ; }
function to set Mysql server config params.

@param string $host
@param string $database
@param string $user
@param string $password
@param string $prefix

@return
function to set Mysql server config params .