

# Drivers, ORMs, and tools

In a database cluster group for Aurora with routing enabled, applications connect to the routing endpoint with standard MySQL drivers, connection pools, object-relational mappers (ORMs), and tools. The following tables give a suggested version for each one. They also list any settings that each one needs in addition to the character set, collation, and TLS settings. For instructions on connecting, see [Connecting to the routing endpoint](databaseclustergroups-connecting.md).

**Note**  
We recommend that you use the latest version of each driver, ORM, and tool.

The *Suggested additional settings* column lists the settings that each driver, ORM, or tool needs. These settings are in addition to the character set, collation, and TLS settings that every connection requires. For information about those settings, see [Supported character set and collations](databaseclustergroups-character-sets.md#databaseclustergroups-character-sets-supported) and [TLS on the routing endpoint](databaseclustergroups-tls.md#databaseclustergroups-requiring-tls-on-the-routing-endpoint). A dash (–) means that, other than the character set, collation, and TLS settings, you can use the default settings.

These settings apply when you connect and run queries. Some features of a driver, ORM, or tool behave differently through the routing endpoint. For information about how the routing endpoint handles statements, see [Statement compatibility](databaseclustergroups-compatibility.md). For information about the features and limits of the routing endpoint, see [Limitations and considerations for database cluster groups for Aurora](databaseclustergroups-limitations.md).

## Drivers and connection pools
<a name="databaseclustergroups-compatibility-drivers"></a>

The following table lists drivers and connection pools.


| Language, runtime, or API | Driver or connection pool | Suggested version | Suggested additional settings | 
| --- | --- | --- | --- | 
| Java | MySQL Connector/J | 26.10.0 or later | – | 
| Java | MariaDB Connector/J | 3.5.3 or later | – | 
| Java | HikariCP | 7.1.0 or later | – | 
| Python | PyMySQL | 1.2.3 or later | – | 
| Python | mysqlclient | 2.3.0 or later | – | 
| Python | MySQL Connector/Python (mysql-connector-python) | 26.10.0 or later |  + Cursor: `cursor(prepared=False)`  | 
| Node.js | mysql2 | 3.24.6 or later | – | 
| Go | go-sql-driver/mysql | 1.10.1 or later | – | 
| Ruby | mysql2 | 0.5.7 or later | – | 
| PHP | PDO\_MYSQL | PHP 8.5 or later | – | 
| PHP | mysqli | PHP 8.5 or later | – | 
| .NET | MySqlConnector | 2.6.2 or later | – | 
| Open Database Connectivity (ODBC) | MySQL Connector/ODBC | 26.10 or later |  + Driver: the Connector/ODBC Unicode driver  | 

## AWS drivers and wrappers
<a name="databaseclustergroups-compatibility-aws-drivers"></a>

The following table lists AWS drivers and wrappers.


| Language, runtime, or API | Driver or wrapper | Suggested version | Suggested additional settings | 
| --- | --- | --- | --- | 
| Java | AWS JDBC Driver | 4.7.0 or later |  + Driver: MySQL Connector/J  | 
| Python | AWS Python Driver | 3.1.0 or later |  + Driver: MySQL Connector/Python<br />+ Cursor: `cursor(prepared=False)`  | 
| Node.js | AWS Advanced NodeJS Wrapper | 3.0.1 or later |  + Driver: `mysql2`<br />+ Plugins: `plugins: 'initialConnection,auroraConnectionTracker,failover2'`  | 
| Go | AWS Advanced Go Wrapper | 2.1.1 or later |  + Driver: `go-sql-driver/mysql`, through the `mysql-driver` module 1.2.1 or later  | 
| Ruby | AWS Advanced Ruby Driver Wrapper | 1.1.0 or later |  + Driver: `mysql2`  | 
| .NET | AWS Advanced .NET Data Provider Wrapper | 3.0.0 or later |  + Driver: MySqlConnector  | 

## ORMs
<a name="databaseclustergroups-compatibility-orms"></a>

The following table lists ORMs.


| Language or runtime | ORM | Suggested version | Suggested additional settings | 
| --- | --- | --- | --- | 
| Java | Hibernate | 7.4.17 or later | – | 
| Java | jOOQ | 3.21.10 or later | – | 
| Java | MyBatis | 3.6.0 or later | – | 
| Java | Spring Data JPA | 4.2.0 or later | – | 
| Kotlin | Exposed | 1.6.1 or later |  + Autocommit: keep the default (off) inside `transaction {}`  | 
| Python | SQLAlchemy | 2.1.9 or later | – | 
| Python | Django | 6.1.3 or later |  + Driver: `ENGINE: django.db.backends.mysql` with `mysqlclient`  | 
| Python | Peewee | 4.5.3 or later |  + Driver: PyMySQL  | 
| Python | SQLModel | 0.0.50 or later | – | 
| Python | Tortoise ORM | 1.1.9 or later |  + Driver: `tortoise-orm[asyncmy]` package, `engine: 'tortoise.backends.mysql'`  | 
| Node.js | TypeORM | 1.1.3 or later |  + Driver: `type: 'mysql'`  | 
| Node.js | Prisma | 7.10.1 or later |  + Adapter: `@prisma/adapter-mariadb`  | 
| Node.js | Drizzle ORM | 0.45.4 or later |  + Adapter: `drizzle-orm/mysql2`  | 
| Node.js | MikroORM | 7.2.11 or later |  + Driver: `@mikro-orm/mysql`  | 
| Go | GORM | 1.31.2 or later | – | 
| Go | Ent | 0.14.6 or later | – | 
| Ruby | Active Record | Rails 8.1.4 or later |  + Adapter: `adapter: 'mysql2'`  | 
| Ruby | Sequel | 5.110.0 or later |  + Adapter: `adapter: 'mysql2'`  | 
| PHP | Eloquent | Laravel 13.40 or later |  + Driver: `driver => 'mysql'`  | 
| PHP | Doctrine ORM | 3.8.0 or later |  + Driver: `driver => 'pdo_mysql'`  | 
| .NET | Dapper | 2.1.100 or later | – | 

## Clients and GUI tools
<a name="databaseclustergroups-compatibility-tools"></a>

The following table lists clients and GUI tools.


| Type | Tool | Suggested version | Suggested additional settings | 
| --- | --- | --- | --- | 
| Command-line client | MySQL mysql client | 26.10.0 or later | – | 
| Command-line client | MySQL Shell | 26.10.0 or later |  + Protocol: `--mysql`  | 
| Command-line client | MariaDB mariadb client | 11.8.10 or later | – | 
| GUI tool | MySQL Workbench | 26.10.0 or later | – | 
| GUI tool | DBeaver Community | 26.2.5.2 or later |  + TLS: set `sslMode` on the **Driver properties** tab<br />+ **SSL** tab: keep **Use SSL** cleared  | 
| GUI tool | HeidiSQL | 12.22 or later |  + Connection: **Network type** set to MariaDB or MySQL (TCP/IP), and **Library** set to the MySQL 8.4 client library  | 