MariaDB /etc/mysql/mariadb.conf.d/60-galera.cnf

Original 📋 Ubuntu 22.04 LTS (Jammy Jellyfish) 21 lines

Works On

Viewing:
Ubuntu 22.04 LTS (Jammy Jellyfish)
Same on:
Debian 11 (Bullseye) Debian 12 (Bookworm) Ubuntu 24.04 LTS (Noble Numbat)
Other versions:

Details

Size
21 lines
MD5
e2f4b79114ba923199ead4b7e94eee70
SHA256
fd9c188f54cfc21080ee06109869f0c658d8010e6a595a8ac9eee195ac97d44b
/etc/mysql/mariadb.conf.d/60-galera.cnf
#
# * Galera-related settings
#
# See the examples of server wsrep.cnf files in /usr/share/mysql
# and read more at https://mariadb.com/kb/en/galera-cluster/

[galera]
# Mandatory settings
#wsrep_on                 = ON
#wsrep_cluster_name       = "MariaDB Galera Cluster"
#wsrep_cluster_address    = gcomm://
#binlog_format            = row
#default_storage_engine   = InnoDB
#innodb_autoinc_lock_mode = 2

# Allow server to accept connections on all interfaces.
#bind-address = 0.0.0.0

# Optional settings
#wsrep_slave_threads = 1
#innodb_flush_log_at_trx_commit = 0

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/e2f4b79114ba923199ead4b7e94eee70?hint=60-galera.cnf
wget:
wget -O 60-galera.cnf https://exampleconfig.com/api/v1/config/original/e2f4b79114ba923199ead4b7e94eee70?hint=60-galera.cnf

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/e2f4b79114ba923199ead4b7e94eee70?hint=60-galera.cnf' /><config><app>MariaDB</app><os>Ubuntu 22.04 LTS (Jammy Jellyfish)</os><location>/etc/mysql/mariadb.conf.d/60-galera.cnf</location><lines>21</lines><md5>e2f4b79114ba923199ead4b7e94eee70</md5><sha256>fd9c188f54cfc21080ee06109869f0c658d8010e6a595a8ac9eee195ac97d44b</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/mariadb.conf.d/60-galera.cnf
Directory
/etc/mysql/mariadb.conf.d/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

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

Is 60-galera.cnf safe for production?

It is the vendor default for Ubuntu 22.04 LTS (Jammy Jellyfish). 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 22.04 LTS (Jammy Jellyfish).

Can I use this for MariaDB troubleshooting?

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