When should I use this 50-client.cnf?
Use it to restore a missing default, confirm what shipped, or diff against your current MariaDB config.
# # This group is read by the client library # Use it for options that affect all clients, but not the server # [client] # Default is Latin1, if you need UTF-8 set this (also in server section) default-character-set = utf8mb4 # Example of client certificate usage # ssl-cert=/etc/mysql/client-cert.pem # ssl-key=/etc/mysql/client-key.pem # # Allow only TLS encrypted connections # ssl-verify-server-cert=on # This group is *never* read by mysql client library, though this # /etc/mysql/mariadb.cnf.d/client.cnf file is not read by Oracle MySQL # client anyway. # If you use the same .cnf file for MySQL and MariaDB, # use it for MariaDB-only client options [client-mariadb]
curl https://exampleconfig.com/api/v1/config/original/5898a2c9f6b119afac615d3377f2db49?hint=50-client.cnf
wget -O 50-client.cnf https://exampleconfig.com/api/v1/config/original/5898a2c9f6b119afac615d3377f2db49?hint=50-client.cnf
<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/5898a2c9f6b119afac615d3377f2db49?hint=50-client.cnf' /><config><app>MariaDB</app><os>Debian 9 (Stretch)</os><location>/etc/mysql/mariadb.conf.d/50-client.cnf</location><lines>22</lines><md5>5898a2c9f6b119afac615d3377f2db49</md5><sha256>edaed2d12eeaefacf540c6ea5ad7411529285407fe59a9ee4dee9f95ccd49181</sha256></config></prompt>
Paste into Claude, ChatGPT, or any AI assistant.
sudo apk add mariadb
sudo apt update && sudo apt install mariadb-server
sudo yum install mariadb-server
sudo apt update && sudo apt install mariadb-server
When should I use this 50-client.cnf?
Use it to restore a missing default, confirm what shipped, or diff against your current MariaDB config.
How do I restore MariaDB defaults?
Download the file, back up the current one in /etc/mysql/mariadb.conf.d/50-client.cnf, replace it, then reload or restart MariaDB.
Is 50-client.cnf safe for production?
It is the vendor default for Debian 9 (Stretch). Treat it as a baseline and review security and performance settings before production use.
How does this differ from other OS versions?
Defaults vary by distro and version. This copy matches Debian 9 (Stretch).
Can I use this for MariaDB troubleshooting?
Yes. Diff it against yours to find drift, then restore only the sections you need.