Zum Hauptinhalt

Connecting your Java application to Amazon Aurora MySQL requires a compatible JDBC driver to facilitate communication. While standard MySQL drivers work due to Aurora's wire compatibility, AWS provides specialized options designed to handle the unique architecture of clustered cloud databases.

: A standalone, open-source driver based on MySQL Connector/J. Note that this project reached its end of support on July 25, 2024 , and AWS recommends migrating to the Advanced JDBC Wrapper.

When switching to an AWS-optimized driver, you must update your connection URL to trigger the specialized logic. Driver Type Connection URL Prefix Example URL jdbc:aws-wrapper:mysql:// jdbc:aws-wrapper:mysql://://amazonaws.com Legacy AWS Driver jdbc:mysql:aws:// jdbc:mysql:aws://://amazonaws.com Standard MySQL jdbc:mysql:// jdbc:mysql://://amazonaws.com Source: AWS Database Blog Why Use the AWS Wrapper?