How to make a MariaDB SSH Connection in Katalon Studio?

Viewed 222

My host does not allow direct database access and so I need to SSH into the MariaDB instance.

Has anyone had success with this approach in Katalon Studio?

The recommended JDBC connection will not suffice

@Keyword
def connectDB(String url, String dbname, String port, String username, String password){

    //Load driver class for your specific database type

    String conn = "jdbc:mysql://" + url + ":" + port + "/" + dbname

    //Class.forName("org.sqlite.JDBC")

    //String connectionString = "jdbc:sqlite:" + dataFile

    if(connection != null && !connection.isClosed()){

        connection.close()

    }
}
0 Answers
Related