Skip to content

SSL

SHOW VARIABLES LIKE '%ssl%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| have_openssl | YES |
| have_ssl | YES |
+---------------+-------+

The above SQL code checks if the MySQL server has SSL configured or not. The output ‘YES’ for both variables indicates that SSL is configured and enabled for the server.