Abstract
This manual describes how to install, configure, and develop database applications using MySQL Connector/J 9.0, a JDBC and X DevAPI driver for communicating with MySQL servers.
MySQL Connector/J 9.0 supersedes the 8.4 series and is recommended for use on production systems. It is for use with MySQL Server 8.0 and up. Please upgrade to MySQL Connector/J 9.0.
For notes detailing the changes in each release of Connector/J, see MySQL Connector/J Release Notes.
For legal information, including licensing information, see the Preface and Legal Notices.
For help with using MySQL, please visit the MySQL Forums, where you can discuss your issues with other MySQL users.
Document generated on: 2024-11-05 (revision: 80192)
Table of Contents
- Preface and Legal Notices
- 1 Overview of MySQL Connector/J
- 2 Compatibility with MySQL and Java Versions
- 3 What's New in Connector/J 9.0?
- 4 Connector/J Installation
- 5 Connector/J Examples
- 6 Connector/J Reference
- 6.1 Driver/Datasource Class Name
- 6.2 Connection URL Syntax
- 6.3 Configuration Properties
- 6.3.1 Authentication
- 6.3.2 Connection
- 6.3.3 Session
- 6.3.4 Networking
- 6.3.5 Security
- 6.3.6 Statements
- 6.3.7 Prepared Statements
- 6.3.8 Result Sets
- 6.3.9 Metadata
- 6.3.10 BLOB/CLOB processing
- 6.3.11 Datetime types processing
- 6.3.12 High Availability and Clustering
- 6.3.13 Performance Extensions
- 6.3.14 Debugging/Profiling
- 6.3.15 Exceptions/Warnings
- 6.3.16 Tunes for integration with other products
- 6.3.17 JDBC compliance
- 6.3.18 X Protocol and X DevAPI
- 6.4 JDBC API Implementation Notes
- 6.5 Java, JDBC, and MySQL Types
- 6.6 Handling of Date-Time Values
- 6.7 Using Character Sets and Unicode
- 6.8 Using Query Attributes
- 6.9 Connecting Securely Using SSL
- 6.10 Connecting Using Unix Domain Sockets
- 6.11 Connecting Using Named Pipes
- 6.12 Connecting Using Various Authentication Methods
- 6.13 Using Source/Replica Replication with ReplicationConnection
- 6.14 Support for DNS SRV Records
- 6.15 Client Session State Tracker
- 6.16 Mapping MySQL Error Numbers to JDBC SQLState Codes
- 7 JDBC Concepts
- 8 Connection Pooling with Connector/J
- 9 Multi-Host Connections
- 10 Using the X DevAPI with Connector/J: Special Topics
- 11 Using the Connector/J Interceptor Classes
- 12 Using Logging Frameworks with SLF4J
- 13 Using Connector/J with OpenTelemetry
- 14 Using Connector/J with Tomcat
- 15 Using Connector/J with Spring
- 16 Troubleshooting Connector/J Applications
- 17 Known Issues and Limitations
- 18 Connector/J Support
- Index