Connect with Java/JDBC
On this page
You can connect from Java/JDBC-based applications to SingleStoreDB using the following drivers/connectors:
The SingleStore JDBC Driver
MariaDB Connector/J (JDBC)
For most JDBC use cases, SingleStore recommends The SingleStore JDBC Driver.
The SingleStore JDBC driver is compatible with JDBC 4.
See The SingleStore JDBC Driver for detailed information on how to install, configure, and connect using this driver.
You can also use the MariaDB Connector/J v2.
To enable/promote connector compatibility, SingleStoreDB identifies itself as MySQL version x.
To specify a MySQL compatibility version, use the
SET GLOBAL compat_version = '5.6.4';
Source code: mariadb-java-client-2.
In this section
Last modified: April 7, 2023