View a markdown version of this page

Drivers, ORMs, and tools - Amazon Aurora

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.

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 and 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. For information about the features and limits of the routing endpoint, see Limitations and considerations for database cluster groups for Aurora.

Drivers and connection pools

The following table lists drivers and connection pools.

Language, runtime, or APIDriver or connection poolSuggested versionSuggested additional settings
JavaMySQL Connector/J26.10.0 or later–
JavaMariaDB Connector/J3.5.3 or later–
JavaHikariCP7.1.0 or later–
PythonPyMySQL1.2.3 or later–
Pythonmysqlclient2.3.0 or later–
PythonMySQL Connector/Python (mysql-connector-python)26.10.0 or later
  • Cursor: cursor(prepared=False)

Node.jsmysql23.24.6 or later–
Gogo-sql-driver/mysql1.10.1 or later–
Rubymysql20.5.7 or later–
PHPPDO_MYSQLPHP 8.5 or later–
PHPmysqliPHP 8.5 or later–
.NETMySqlConnector2.6.2 or later–
Open Database Connectivity (ODBC)MySQL Connector/ODBC26.10 or later
  • Driver: the Connector/ODBC Unicode driver

AWS drivers and wrappers

The following table lists AWS drivers and wrappers.

Language, runtime, or APIDriver or wrapperSuggested versionSuggested additional settings
JavaAWS JDBC Driver4.7.0 or later
  • Driver: MySQL Connector/J

PythonAWS Python Driver3.1.0 or later
  • Driver: MySQL Connector/Python

  • Cursor: cursor(prepared=False)

Node.jsAWS Advanced NodeJS Wrapper3.0.1 or later
  • Driver: mysql2

  • Plugins: plugins: 'initialConnection,auroraConnectionTracker,failover2'

GoAWS Advanced Go Wrapper2.1.1 or later
  • Driver: go-sql-driver/mysql, through the mysql-driver module 1.2.1 or later

RubyAWS Advanced Ruby Driver Wrapper1.1.0 or later
  • Driver: mysql2

.NETAWS Advanced .NET Data Provider Wrapper3.0.0 or later
  • Driver: MySqlConnector

ORMs

The following table lists ORMs.

Language or runtimeORMSuggested versionSuggested additional settings
JavaHibernate7.4.17 or later–
JavajOOQ3.21.10 or later–
JavaMyBatis3.6.0 or later–
JavaSpring Data JPA4.2.0 or later–
KotlinExposed1.6.1 or later
  • Autocommit: keep the default (off) inside transaction {}

PythonSQLAlchemy2.1.9 or later–
PythonDjango6.1.3 or later
  • Driver: ENGINE: django.db.backends.mysql with mysqlclient

PythonPeewee4.5.3 or later
  • Driver: PyMySQL

PythonSQLModel0.0.50 or later–
PythonTortoise ORM1.1.9 or later
  • Driver: tortoise-orm[asyncmy] package, engine: 'tortoise.backends.mysql'

Node.jsTypeORM1.1.3 or later
  • Driver: type: 'mysql'

Node.jsPrisma7.10.1 or later
  • Adapter: @prisma/adapter-mariadb

Node.jsDrizzle ORM0.45.4 or later
  • Adapter: drizzle-orm/mysql2

Node.jsMikroORM7.2.11 or later
  • Driver: @mikro-orm/mysql

GoGORM1.31.2 or later–
GoEnt0.14.6 or later–
RubyActive RecordRails 8.1.4 or later
  • Adapter: adapter: 'mysql2'

RubySequel5.110.0 or later
  • Adapter: adapter: 'mysql2'

PHPEloquentLaravel 13.40 or later
  • Driver: driver => 'mysql'

PHPDoctrine ORM3.8.0 or later
  • Driver: driver => 'pdo_mysql'

.NETDapper2.1.100 or later–

Clients and GUI tools

The following table lists clients and GUI tools.

TypeToolSuggested versionSuggested additional settings
Command-line clientMySQL mysql client26.10.0 or later–
Command-line clientMySQL Shell26.10.0 or later
  • Protocol: --mysql

Command-line clientMariaDB mariadb client11.8.10 or later–
GUI toolMySQL Workbench26.10.0 or later–
GUI toolDBeaver Community26.2.5.2 or later
  • TLS: set sslMode on the Driver properties tab

  • SSL tab: keep Use SSL cleared

GUI toolHeidiSQL12.22 or later
  • Connection: Network type set to MariaDB or MySQL (TCP/IP), and Library set to the MySQL 8.4 client library