Example #1
0
File: SQL.php Project: mpf-soft/mpf
 public static function loadConfig()
 {
     echo "\n" . Helper::get()->color("DB Config: ") . "\n";
     do {
         $type = Helper::get()->input("SQL DB Type", "mysql");
         $host = Helper::get()->input("SQL Host", "localhost");
         $name = Helper::get()->input("SQL Name", "");
         $user = Helper::get()->input("SQL User", "root");
         $pass = Helper::get()->input("SQL Pass", "");
     } while (!SQL::testConnection($type, $host, $name, $user, $pass));
     return [$type, $host, $name, $user, $pass];
 }