MariaDB /etc/mysql/my.cnf.fallback

Original 📋 Debian 11 (Bullseye) 33 Zeilen

Details

Größe
33 Zeilen
MD5
1a1c3f9f80dc9176937f47548fb121d2
SHA256
2007f186e8b3d0305f7f2a39d1c686b875cb1fb2f9033330cea85d42fc939a40
/etc/mysql/my.cnf.fallback
# Copyright (c) 2015, 2024, 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/

Kopieren & Einfügen

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

Für KI-Agenten

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/1a1c3f9f80dc9176937f47548fb121d2?hint=my.cnf.fallback' /><config><app>MariaDB</app><os>Debian 11 (Bullseye)</os><location>/etc/mysql/my.cnf.fallback</location><lines>33</lines><md5>1a1c3f9f80dc9176937f47548fb121d2</md5><sha256>2007f186e8b3d0305f7f2a39d1c686b875cb1fb2f9033330cea85d42fc939a40</sha256></config></prompt>

Füge es in Claude, ChatGPT oder einen anderen KI-Assistenten ein.

MariaDB installieren

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

Ablageort

Pfad
/etc/mysql/my.cnf.fallback
Verzeichnis
/etc/mysql/
Bedeutung
Systemweites Konfig-Verzeichnis
Beschreibung
In /etc/ liegen systemweite Einstellungen, die alle Benutzer betreffen.

FAQ

Wann sollte ich my.cnf.fallback verwenden?

Nutze sie, um eine fehlende Default-Datei wiederherzustellen, zu prüfen, was ausgeliefert wurde, oder sie gegen deine aktuelle MariaDB-Config zu diffen.

Wie stelle ich die Defaults von MariaDB wieder her?

Lad die Datei runter, sichere die aktuelle in /etc/mysql/my.cnf.fallback, ersetze sie und lade MariaDB neu oder starte es neu.

Ist my.cnf.fallback für den produktiven Einsatz geeignet?

Das ist der Hersteller-Default für Debian 11 (Bullseye). Nimm sie als Basis und prüf Security- und Performance-Einstellungen, bevor du sie produktiv nutzt.

Wie unterscheidet sich das von anderen OS-Versionen?

Defaults variieren je nach Distro und Version. Diese Version passt zu Debian 11 (Bullseye).

Kann ich das fürs Troubleshooting von MariaDB nutzen?

Ja. Diff es gegen deine Version, finde Abweichungen und stell nur die Teile wieder her, die du brauchst.