MariaDB /etc/mysql/debian.cnf

Original 📋 Ubuntu 24.04 LTS (Noble Numbat) 14 Zeilen

Läuft auf

Ansicht:
Ubuntu 24.04 LTS (Noble Numbat)
Gleich auf:
Debian 11 (Bullseye) Debian 12 (Bookworm) Debian 13 (Trixie) Ubuntu 22.04 LTS (Jammy Jellyfish)
Andere Versionen:

Details

Größe
14 Zeilen
MD5
df477b524b3adfdcc5f765ebfa17a6e7
SHA256
18b2e9f179dabe8762a77b297f803c958a3ed9642aaa5ba184e8d56bc1cfda9a
/etc/mysql/debian.cnf
# THIS FILE IS OBSOLETE. STOP USING IT IF POSSIBLE.
# This file exists only for backwards compatibility for
# tools that run '--defaults-file=/etc/mysql/debian.cnf'
# and have root level access to the local filesystem.
# With those permissions one can run 'mariadb' directly
# anyway thanks to unix socket authentication and hence
# this file is useless. See package README for more info.
[client]
host     = localhost
user     = root
[mysql_upgrade]
host     = localhost
user     = root
# THIS FILE WILL BE REMOVED IN A FUTURE DEBIAN RELEASE.

Kopieren & Einfügen

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

Für KI-Agenten

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/df477b524b3adfdcc5f765ebfa17a6e7?hint=debian.cnf' /><config><app>MariaDB</app><os>Ubuntu 24.04 LTS (Noble Numbat)</os><location>/etc/mysql/debian.cnf</location><lines>14</lines><md5>df477b524b3adfdcc5f765ebfa17a6e7</md5><sha256>18b2e9f179dabe8762a77b297f803c958a3ed9642aaa5ba184e8d56bc1cfda9a</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/debian.cnf
Verzeichnis
/etc/mysql/
Bedeutung
Systemweites Konfig-Verzeichnis
Beschreibung
In /etc/ liegen systemweite Einstellungen, die alle Benutzer betreffen.

FAQ

Wann sollte ich debian.cnf 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/debian.cnf, ersetze sie und lade MariaDB neu oder starte es neu.

Ist debian.cnf für den produktiven Einsatz geeignet?

Das ist der Hersteller-Default für Ubuntu 24.04 LTS (Noble Numbat). 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 Ubuntu 24.04 LTS (Noble Numbat).

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.