You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #20308 [Doctrine] Update doctrine.rst on ssl documentation (lacpandore)
This PR was submitted for the 7.1 branch but it was merged into the 6.4 branch instead.
Discussion
----------
[Doctrine] Update doctrine.rst on ssl documentation
Added SSL configuration example for MySQL in Doctrine DBAL
- Included YAML and XML configuration examples for setting up an SSL connection with MySQL using Doctrine DBAL in Symfony.
- Explained how to use environment variables for specifying SSL certificate paths (`MYSQL_SSL_KEY`, `MYSQL_SSL_CERT`, `MYSQL_SSL_CA`).
- Added a note on configuring the `.env.local` or `.env.local.php` files with the appropriate certificate paths.
Commits
-------
dff0d33 Update doctrine.rst on ssl documentation
Copy file name to clipboardExpand all lines: reference/configuration/doctrine.rst
+57Lines changed: 57 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -470,5 +470,62 @@ If the ``dir`` configuration is set and the ``is_bundle`` configuration
470
470
is ``true``, the DoctrineBundle will prefix the ``dir`` configuration with
471
471
the path of the bundle.
472
472
473
+
SSL Connection with MySQL
474
+
~~~~~~~~~~~~~~~~~~~~~~~~~
475
+
476
+
If you want to configure a secure SSL connection to MySQL in your Symfony application using Doctrine, you need to set specific options for the SSL certificates. Here's how to configure the connection using environment variables for the certificate paths:
0 commit comments