Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

MariaDB Command-line Client from MariaDB Server Version 10.3.12 (GPLv2)

Source code: mariadb-10.3.12.tar.gz

Configuring the MariaDB Connector

The documentation can be found on the MariaDB website: https://mariadb.com/kb/en/about-mariadb-connector-j/#usage-examples

Example of Creating a Table on MariaDB

Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "username", "password");
Statement stmt = connection.createStatement();
stmt.executeUpdate("CREATE TABLE table1 (id INT NOT NULL PRIMARY KEY, colchar VARCHAR(20))");
stmt.close();
connection.close();

Example of Calling an Existing Stored Procedure via MariaDB

Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "username", "password");
Statement stmt = connection.createStatement();
stmt.executeUpdate("ECHO sp_name(parameter);");
stmt.close();
connection.close();

Note

The details of your host, port, credentials, etc. should be updated in the examples above.

Last modified:

Was this article helpful?