# Client defaults for the mariadb/mysql/mariadb-dump CLIs in this image. # # The MariaDB server runs in WHP's separate `mysql` container, reached over # the docker bridge. An 11.x client defaults to "TLS required, verify the # certificate": against a 10.11 server it fails with # ERROR 2026: SSL is required, but the server does not support it # and against an 11.x server with a passwordless account with "self-signed # certificate". This image ships a 10.11 client today (no effect), but WP-CLI # `wp db ...`, mysqldump and any client a customer adds would break the day the # client series differs from the server's. # # ssl-verify-server-cert=0 (measured on mariadb:11.8 and 10.11.18 clients vs # 10.11.18 and 11.8 servers) keeps TLS negotiated when the server offers it and # stops the verification/"required" failure, so a customer who points the CLI at # a remote TLS database is not downgraded to plaintext. A customer who wants # verification passes --ssl-verify-server-cert or sets it in ~/.my.cnf (later # files and the command line win). [client] ssl-verify-server-cert=0