MariaDB /etc/mysql/mariadb.conf.d/50-client.cnf

Original 📋 Ubuntu 24.04 LTS (Noble Numbat) 19 lines

Works On

Viewing:
Ubuntu 24.04 LTS (Noble Numbat)
Same on:
Debian 11 (Bullseye) Debian 12 (Bookworm) Debian 13 (Trixie) Ubuntu 22.04 LTS (Jammy Jellyfish)
Other versions:

Details

Size
19 lines
MD5
a8028d231dad4d2658bfd8b0db11f85e
SHA256
69c1fdec9f09efd072bdcd65f8f0061a687166ef3738fd2bf4296a0399bfba08
/etc/mysql/mariadb.conf.d/50-client.cnf
#
# This group is read by the client library
# Use it for options that affect all clients, but not the server
#

[client]
# 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]

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/a8028d231dad4d2658bfd8b0db11f85e?hint=50-client.cnf
wget:
wget -O 50-client.cnf https://exampleconfig.com/api/v1/config/original/a8028d231dad4d2658bfd8b0db11f85e?hint=50-client.cnf

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/a8028d231dad4d2658bfd8b0db11f85e?hint=50-client.cnf' /><config><app>MariaDB</app><os>Ubuntu 24.04 LTS (Noble Numbat)</os><location>/etc/mysql/mariadb.conf.d/50-client.cnf</location><lines>19</lines><md5>a8028d231dad4d2658bfd8b0db11f85e</md5><sha256>69c1fdec9f09efd072bdcd65f8f0061a687166ef3738fd2bf4296a0399bfba08</sha256></config></prompt>

Paste into Claude, ChatGPT, or any AI assistant.

Install MariaDB

Alpine Linux

sudo apk add mariadb

Debian

sudo apt update && sudo apt install mariadb-server

Red Hat Enterprise Linux

sudo yum install mariadb-server

Ubuntu

sudo apt update && sudo apt install mariadb-server

File Location

File Path
/etc/mysql/mariadb.conf.d/50-client.cnf
Directory
/etc/mysql/mariadb.conf.d/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

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 Ubuntu 24.04 LTS (Noble Numbat). 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 Ubuntu 24.04 LTS (Noble Numbat).

Can I use this for MariaDB troubleshooting?

Yes. Diff it against yours to find drift, then restore only the sections you need.