0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

dockerでwordpressからmariadbでTLS/SSLのエラー

Last updated at Posted at 2025-08-14

dockerのwordpressからmariadbに接続時以下エラーがでていた。

ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it

以下にてバージョンの差分確認
wp側は以下にてバージョン確認

docker exec -it wordpress sh -lc '
  cat /etc/os-release | sed -n "1,4p";
  mariadb --version || true; mysql --version || true;
  dpkg -S /usr/bin/mariadb 2>/dev/null || true;
  dpkg -S /usr/bin/mariadb-check 2>/dev/null || true;
  dpkg -l | egrep "mariadb|mysql|wp-cli"'

mariadb側は
docker-compose.ymlやDockerfileに記述あると思います。

wp側 :

/usr/bin/mariadb-check from 11.8.2-MariaDB, client 2.8 for debian-linux-gnu (x86_64)
OS:     Linux 6.8.0-36-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024 x86_64
Shell:
PHP binary:     /usr/local/bin/php
PHP version:    8.4.11
php.ini used:
MySQL binary:   /usr/local/bin/mariadb
MySQL version:  /usr/bin/mariadb from 11.8.2-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using  EditLine wrapper
SQL modes:
WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:      phar://wp-cli.phar/vendor
WP_CLI phar path:       phar:///usr/local/bin/wp
WP-CLI packages dir:
WP-CLI cache dir:       /root/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:  /var/www/html/cms/wp-cli.yml
WP-CLI version: 2.12.0

mariadb側

  gs816_db:
  gs816_db:
    container_name: gs816_db
   # image: mariadb:11.3
    image: mariadb:11.8.3

wp側 11.8.2で mariadb側 11.3だったのでエラーだとそういうのでるらしい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?