'pdo_mysql', 'host' => $_REQUEST['vdbhost'], 'user' => $_REQUEST['vdblogin'], 'password' => $_REQUEST['vdbpass'], //'dbname' => isset($_configuration['main_database']) ? $_configuration['main_database'] : '', // Only relevant for pdo_sqlite, specifies the path to the SQLite database. //'path' => isset($_configuration['db_path']) ? $_configuration['db_path'] : '', // Only relevant for pdo_mysql, pdo_pgsql, and pdo_oci/oci8, //'port' => isset($_configuration['db_port']) ? $_configuration['db_port'] : '', ]; try { $database = new \Database(); $connection = $database->connect( $dbParams, $_configuration['root_sys'], $_configuration['root_sys'], true ); $list = $connection->getSchemaManager()->listDatabases(); echo $plugin->get_lang('connectionok'); } catch (Exception $e) { echo $plugin->get_lang('badconnection'); die(); }