Complete the code to specify the SSL mode for a secure MySQL connection.
mysql --host=example.com --user=user --password=pass --ssl-mode=[1]
The --ssl-mode=REQUIRED option ensures the connection uses SSL encryption.
Complete the code to specify the path to the CA certificate for SSL verification.
mysql --host=example.com --user=user --password=pass --ssl-ca=[1]
The --ssl-ca option points to the CA certificate file to verify the server's certificate.
Fix the error in the command to enable SSL with client certificate and key.
mysql --host=example.com --user=user --password=pass --ssl-cert=[1] --ssl-key=/home/user/client-key.pem
The --ssl-cert option must point to the client certificate file, not the key or CA.
Fill both blanks to configure a secure MySQL connection with SSL mode and CA certificate.
mysql --host=example.com --user=user --password=pass --ssl-mode=[1] --ssl-ca=[2]
Use REQUIRED for ssl-mode to enforce SSL and specify the CA certificate path with --ssl-ca.
Fill all three blanks to connect securely with SSL mode, client cert, and client key.
mysql --host=example.com --user=user --password=pass --ssl-mode=[1] --ssl-cert=[2] --ssl-key=[3]
Set ssl-mode to REQUIRED and provide correct paths for client certificate and key files.