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
Usually database platforms (such as PlanetScale or TiDB Cloud) do not allow to connect without SSL/TLS. So, to be able to connect I need to set PDO::MYSQL_ATTR_SSL_CA attribute. My application is Symfony, so I do it on Symfony way by setting it in doctrine.yaml config file. But I don't know how to do it for TNT?
Can I somehow add additional options (MYSQL_ATTR_SSL_CA in my case) to config? Or is there any other way to make TNT be able to connect to MySQL using SSL/TLS.
The text was updated successfully, but these errors were encountered:
I found solution. It is possible to add custom PDO and give it to TNT with setDatabaseHandle method.
This solution works for me, but this solution feels kind of hack, more proper way would be if you can set it via loadConfig. Is that possible? If not, I think possibility to add this (or any other MySql attribute) should be added.
Anyway, I suggest to update documentation about this. Connecting via SSL seems too me like common use case and it not so straight forward to not being mention anywhere.
Hi,
Usually database platforms (such as PlanetScale or TiDB Cloud) do not allow to connect without SSL/TLS. So, to be able to connect I need to set PDO::MYSQL_ATTR_SSL_CA attribute. My application is Symfony, so I do it on Symfony way by setting it in doctrine.yaml config file. But I don't know how to do it for TNT?
This is how I setup TNT currently:
Can I somehow add additional options (MYSQL_ATTR_SSL_CA in my case) to config? Or is there any other way to make TNT be able to connect to MySQL using SSL/TLS.
The text was updated successfully, but these errors were encountered: