'root', 'host' => 'localhost', 'password' => '']; } $CONF['database_type'] = 'mysql'; $CONF['database_user'] = $config['user']; $CONF['database_pass'] = $config['password']; $CONF['database_name'] = 'postfixadmin'; Config::write('database_type', 'mysql'); Config::write('database_user', $config['user']); Config::write('database_pass', $config['password']); Config::write('database_name', 'postfixadmin'); var_dump('mysql'); } list($db, $error_text) = db_connect_with_errors(); if ($db === false) { echo "failed to connect to database\n"; echo $error_text; exit(1); } require_once(dirname(__FILE__) . '/../public/upgrade.php');