source/Setup/Utilities.php
public function checkDbExists($database)
    {
        try {
            $databaseExists = true;
            $database->execSql("select * from oxconfig");
        } catch (Exception $exception) {
            $databaseExists = false;
        }

        return $databaseExists;
    }
public function checkDbExists($database)
    {
        try {
            $databaseExists = true;
            $database->execSql("select * from oxconfig");
        } catch (Exception $exception) {
            $databaseExists = false;
        }

        return $databaseExists;
    }
public function checkDbExists ( $ database ) { try { $ databaseExists = true ; $ database -> execSql ( "select * from oxconfig" ) ; } catch ( Exception $ exception ) { $ databaseExists = false ; } return $ databaseExists ; }
Check if database is up and running

@param  Database $database
@return bool
Check if database is up and running