Wann sollte ich 50-client.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.
# # 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]
curl https://exampleconfig.com/api/v1/config/original/a8028d231dad4d2658bfd8b0db11f85e?hint=50-client.cnf
wget -O 50-client.cnf https://exampleconfig.com/api/v1/config/original/a8028d231dad4d2658bfd8b0db11f85e?hint=50-client.cnf
<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 22.04 LTS (Jammy Jellyfish)</os><location>/etc/mysql/mariadb.conf.d/50-client.cnf</location><lines>19</lines><md5>a8028d231dad4d2658bfd8b0db11f85e</md5><sha256>69c1fdec9f09efd072bdcd65f8f0061a687166ef3738fd2bf4296a0399bfba08</sha256></config></prompt>
Füge es in Claude, ChatGPT oder einen anderen KI-Assistenten ein.
sudo apk add mariadb
sudo apt update && sudo apt install mariadb-server
sudo yum install mariadb-server
sudo apt update && sudo apt install mariadb-server
Wann sollte ich 50-client.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/mariadb.conf.d/50-client.cnf, ersetze sie und lade MariaDB neu oder starte es neu.
Ist 50-client.cnf für den produktiven Einsatz geeignet?
Das ist der Hersteller-Default für Ubuntu 22.04 LTS (Jammy Jellyfish). 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 22.04 LTS (Jammy Jellyfish).
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.