From b177b599762c958cfda9d2639d811382566fccdf Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Fri, 13 Jun 2025 17:25:54 +0200 Subject: [PATCH] [#3638] Added a comment explaining the code change --- src/lib/mysql/testutils/mysql_schema.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/mysql/testutils/mysql_schema.cc b/src/lib/mysql/testutils/mysql_schema.cc index 9ecd4e70cc..bcf1af2bcd 100644 --- a/src/lib/mysql/testutils/mysql_schema.cc +++ b/src/lib/mysql/testutils/mysql_schema.cc @@ -203,6 +203,10 @@ string getMySQLTlsServer() { value = "UNCONFIGURED"; } } else if (value.empty()) { + // MySQL 9.x does not support the 'have_ssl' global variable + // so trying the 'ssl_ciper' status which returns the cipher name + // or the empty value. It is also on the long term a good + // candidate for remplacing the 'have_ssl' check... value = getMySQLTlsStatusVariable("ssl_cipher"); if (value.empty() || !isMySQLTlsConfigured()) { value = "UNCONFIGURED"; -- 2.47.3