SSL Mode

This option specifies whether the connector uses SSL encryption and verification when connecting to MySQL.

  • DISABLED (0): SSL is not used.
  • PREFERRED (1): Use SSL encryption if the server supports it. Otherwise, connect without using SSL.
  • REQUIRED (2): Use SSL encryption. If the server does not support SSL, the connection fails.
  • VERIFY_CA (3): Use SSL encryption and either one-way or two-way identity verification. If the server does not support SSL or if identity verification fails, the connection fails.
  • VERIFY_IDENTITY (4): Use SSL encryption and either one-way or two-way identity verification, and also verify the host name of the server. If the server does not support SSL or if a certificate or host name cannot be verified, the connection fails.
Key Name Default Value Required

SSLMode

PREFERRED (1)

No