Skip to content

Commit

Permalink
Add JDBC URL parameter for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessie212 authored and ebyhr committed Jul 23, 2021
1 parent 4ee145c commit d78733c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/src/main/sphinx/connector/mysql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,25 @@ connection properties as appropriate for your setup:
connection-user=root
connection-password=secret
The ``connection-url`` defines the connection information and parameters to pass
to the MySQL JDBC driver. The supported parameters for the URL are
available in the `MySQL Developer Guide
<https://dev.mysql.com/doc/connector-j/8.0/en/>`_.

For example, the following ``connection-url`` allows you to
configure the JDBC driver to interpret time values based on UTC as a timezone on
the server, and serves as a `workaround for a known issue
<https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-usagenotes-known-issues-limitations.html>`_.

.. code-block:: text
connection-url=jdbc:mysql://example.net:3306?serverTimezone=UTC
The ``connection-user`` and ``connection-password`` are typically required and
determine the user credentials for the connection, often a service user. You can
use :doc:`secrets </security/secrets>` to avoid actual values in the catalog
properties files.

Multiple MySQL servers
^^^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit d78733c

Please sign in to comment.