# Connect with Java/JDBC

You can connect from Java/JDBC-based applications to SingleStore using the following drivers/connectors:

* The SingleStore JDBC Driver
* MariaDB Connector/J (JDBC)

For most JDBC use cases, SingleStore recommends [The SingleStore JDBC Driver](https://docs.singlestore.com/db/v9.1/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/the-singlestore-jdbc-driver.md).

You can use GSSAPI (Generic Security Services Application Program Interface) authentication via the JDBC client libraries. See [JDBC Connector Setup Instructions With Optional GSSAPI](https://docs.singlestore.com/db/v9.1/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/jdbc-connector-setup-instructions-with-optional-gssapi.md) for more information.

## The  SingleStore JDBC Driver

The SingleStore JDBC driver is compatible with JDBC 4.2. You can use this driver to connect applications developed in Java 21, Java 17, Java 11, and Java 8 to SingleStore databases.

Refer to [The SingleStore JDBC Driver](https://docs.singlestore.com/db/v9.1/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/the-singlestore-jdbc-driver.md) for detailed information on how to install, configure, and connect using this driver.

## Hibernate SingleStore Dialect

Refer to [Hibernate SingleStore Dialect](https://docs.singlestore.com/db/v9.1/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/hibernate-singlestore-dialect.md) for information on connecting to your SingleStore deployments from Hibernate applications using the SingleStore dialect.

## MariaDB Connector/J (JDBC) Version 2.4.0 (LGPLv2.1)

You can also use the MariaDB Connector/J v2.4.0 to connect to your SingleStore database.

> **📝 Note**: To enable/promote connector compatibility, SingleStore identifies itself as MySQL version x.x.x compatible. The compatibility version may vary depending on the SingleStore version in use.To specify a MySQL compatibility version, use the `compat_version` variable. For example,```sql
> SET GLOBAL compat_version = '5.6.4';
> ```

Refer to [Connector/J 2.4.0](https://mariadb.com/docs/release-notes/connectors/java/2.4/2.4.0) for its binary and source code.

## In this section

* [The SingleStore JDBC Driver](https://docs.singlestore.com/db/v9.1/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/the-singlestore-jdbc-driver.md)
* [Hibernate SingleStore Dialect](https://docs.singlestore.com/db/v9.1/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/hibernate-singlestore-dialect.md)
* [Connect with Spring Boot](https://docs.singlestore.com/db/v9.1/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/connect-with-spring-boot.md)
* [JDBC Connector Setup Instructions With Optional GSSAPI](https://docs.singlestore.com/db/v9.1/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/jdbc-connector-setup-instructions-with-optional-gssapi.md)

***

Modified at: November 7, 2025

Source: [/db/v9.1/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/](https://docs.singlestore.com/db/v9.1/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/)

(An index of the documentation is available at /llms.txt)
