-
I am trying to run dbmate to run migrations on mysql database with require_secure_transport=ON I have environment variable I run dbmate: however, I still got error: Error 3159 (HY000): Connections using insecure transport are prohibited while --require_secure_transport=ON. any suggestions, or am I correctly assuming |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try:
or:
if your server-side SSL certificate is self-signed (presumably, by the CA represented in If we wanted to support specifying a custom CA certificate, we would need to implement mysql.RegisterTLSConfig in the dbmate mysql driver in some way, which currently isn't supported. |
Beta Was this translation helpful? Give feedback.
Try:
mysql://user:pass@host:3306/database_name?tls=true
or:
mysql://user:pass@host:3306/database_name?tls=skip-verify
if your server-side SSL certificate is self-signed (presumably, by the CA represented in
/mysql.crt.pem
) or otherwise invalid.If we wanted to support specifying a custom CA certificate, we would need to implement mysql.RegisterTLSConfig in the dbmate mysql driver in some way, which currently isn't supported.