Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Minor
-
Resolution: Unresolved
-
11.4, 11.8, 12.3, 11.4.10
Description
mariadbd has have_ssl=TRUE enabled. When I use mariadb-backup to perform a backup, the following error occurs:
$ sudo /root/tool/mariadb-11.4.12-linux-systemd-x86_64/bin/mariadb-backup --backup --target-dir=~/data --user=root --password=xxxxxx |
[00] 2026-06-16 18:50:00 Connecting to MariaDB server host: localhost, user: root, password: set, port: not set, socket: /run/mysqld/mysqld.sock |
[00] 2026-06-16 18:50:00 Failed to connect to MariaDB server: SSL connection error: ok.
|
Obviously, I did not specify SSL for mariadb-backup, but it still tries to establish an SSL connection.
Even using --skip-ssl yields the same result.
After reading the source code, I suspect the possible cause is:
Since mysql_init() already sets use_ssl=1, the check above is meaningless — CLIENT_SSL is always added to the client flags regardless of whether any SSL options are configured. The command-line --skip-ssl option only sets a separate global variable opt_use_ssl to 0, but this is never propagated to mysql->options.use_ssl.
Attachments
Issue Links
- relates to
-
MDEV-32473 MariaBackup requires disable-ssl-verify-server-cert
-
- Closed
-