diff --git a/session/database.rst b/session/database.rst index 01c663911e1..dffed5562e7 100644 --- a/session/database.rst +++ b/session/database.rst @@ -234,6 +234,16 @@ first register a new handler service with your database credentials: ; }; +.. tip:: + + When using MySQL as the database, the DSN defined in ``DATABASE_URL`` can + contain the ``charset`` and ``unix_socket`` options as query string parameters. + + .. versionadded:: 5.3 + + The support for ``charset`` and ``unix_socket`` options was introduced + in Symfony 5.3. + Next, use the :ref:`handler_id ` configuration option to tell Symfony to use this service as the session handler: