MariaDB /etc/mysql/my.cnf.fallback

Original 📋 Ubuntu 20.04 LTS (Focal Fossa) 33 lines

Works On

Viewing:
Ubuntu 20.04 LTS (Focal Fossa)
Same on:
Debian 12 (Bookworm) Ubuntu 22.04 LTS (Jammy Jellyfish) Ubuntu 24.04 LTS (Noble Numbat)
Other versions:

Details

Size
33 lines
MD5
c6e5f8779da0dbdc84837cef20dae05d
SHA256
824fcb08a7ba8ffc9a49843fbd612b18b751e8d082be94ede59b81cf8686c593
/etc/mysql/my.cnf.fallback
# Copyright (c) 2015, 2025, Oracle and/or its affiliates.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2.0,
# as published by the Free Software Foundation.
#
# This program is designed to work with certain software (including
# but not limited to OpenSSL) that is licensed under separate terms,
# as designated in a particular file or component or in included license
# documentation.  The authors of MySQL hereby grant you an additional
# permission to link the program and your derivative works with the
# separately licensed software that they have either included with
# the program or referenced in the documentation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License, version 2.0, for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA

#
# The MySQL Community Server configuration file.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/c6e5f8779da0dbdc84837cef20dae05d?hint=my.cnf.fallback
wget:
wget -O my.cnf.fallback https://exampleconfig.com/api/v1/config/original/c6e5f8779da0dbdc84837cef20dae05d?hint=my.cnf.fallback

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/c6e5f8779da0dbdc84837cef20dae05d?hint=my.cnf.fallback' /><config><app>MariaDB</app><os>Ubuntu 20.04 LTS (Focal Fossa)</os><location>/etc/mysql/my.cnf.fallback</location><lines>33</lines><md5>c6e5f8779da0dbdc84837cef20dae05d</md5><sha256>824fcb08a7ba8ffc9a49843fbd612b18b751e8d082be94ede59b81cf8686c593</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/my.cnf.fallback
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 my.cnf.fallback?

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/my.cnf.fallback, replace it, then reload or restart MariaDB.

Is my.cnf.fallback 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.