MariaDB /etc/mysql/debian.cnf

Original 📋 Ubuntu 20.04 LTS (Focal Fossa) 11 lines

Details

Size
11 lines
MD5
c0aec05ed707826b399f2b83df343645
SHA256
1ca603e6a3a8628928fa5e7b7faef1e0692790791c44c01c9bb431c575da3c79
/etc/mysql/debian.cnf
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host     = localhost
user     = root
password = 
socket   = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host     = localhost
user     = root
password = 
socket   = /var/run/mysqld/mysqld.sock

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/c0aec05ed707826b399f2b83df343645?hint=debian.cnf
wget:
wget -O debian.cnf https://exampleconfig.com/api/v1/config/original/c0aec05ed707826b399f2b83df343645?hint=debian.cnf

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/c0aec05ed707826b399f2b83df343645?hint=debian.cnf' /><config><app>MariaDB</app><os>Ubuntu 20.04 LTS (Focal Fossa)</os><location>/etc/mysql/debian.cnf</location><lines>11</lines><md5>c0aec05ed707826b399f2b83df343645</md5><sha256>1ca603e6a3a8628928fa5e7b7faef1e0692790791c44c01c9bb431c575da3c79</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/debian.cnf
Directory
/etc/mysql/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this debian.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/debian.cnf, replace it, then reload or restart MariaDB.

Is debian.cnf safe for production?

It is the vendor default for Ubuntu 20.04 LTS (Focal Fossa). 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 20.04 LTS (Focal Fossa).

Can I use this for MariaDB troubleshooting?

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