Issue: TLS Enforcement by MariaDB Client in Linux Alpine Base Image #54267
-
Hey, I've encountered an issue when mixing Linux Alpine as a base image with MySQL database instances. By default, the MariaDB client is used, which enforces TLS for database connections (see reference [1]). This creates a challenge when running commands with the This issue seems to crop up when mixing MariaDB client with a MySQL database instance. While one proposed solution might be switching over to a MariaDB database instance, the reality is that mixing these two technologies isn’t uncommon. Plus, Linux Alpine is a popular choice for Docker base images, so this situation is likely to affect quite a few users. Problem Details:
Proposed Solutions:
Environment:
Reproduced Repo:https://github.com/rayblair06/laravel-mariadb-11-4-bug References:
Please let me know if more details are required. Happy to collaborate on resolving this! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
a workaround that works globally is creating a my.cnf file containing the following
and add to your Dockerfile ADD ./path/to/my.cnf /etc/my.cnf |
Beta Was this translation helpful? Give feedback.
Hey, thanks for the reply but I'm using MariaDB client so that wouldn't work. However it did lead me to this solution: