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

Authentic ๐Ÿ“‹ Ubuntu 24.04 LTS (Noble Numbat) 22 lines

Compatibility

Currently viewing:
Ubuntu 24.04 LTS (Noble Numbat)
Also compatible:
Debian 11 (Bullseye) Debian 12 (Bookworm) Ubuntu 22.04 LTS (Jammy Jellyfish)
Different versions:

File Info

Size
22 lines
MD5
e2f4b79114ba923199ead4b7e94eee70
SHA256
fd9c188f54cfc21080ee06109869f0c658d8010e6a595a8ac9eee195ac97d44b

Quick Commands

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
/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

How to 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

Configuration 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.

Complete MariaDB Configuration Guide

What is 60-galera.cnf?
Get the original '60-galera.cnf' configuration file for MariaDB from a clean Ubuntu 24.04 LTS (Noble Numbat) installation. This is the factory-default configuration for the popular MySQL-compatible database, perfect for migration planning, performance tuning, and understanding MariaDB-specific optimizations.
Technical Details
Found at '/etc/mysql/mariadb.conf.d/60-galera.cnf', this 22-line file includes Aria storage engine settings, enhanced MyISAM performance, improved replication features, and advanced security options. Used by Wikipedia, Google, and millions of applications requiring high-performance database operations.
Common Configuration Question
How do you configure MariaDB for optimal performance and what are the key differences from MySQL on Ubuntu 24.04?
Why Use This Configuration?
This default configuration showcases MariaDB's enhanced features including better thread handling, improved optimizer, and additional storage engines. Essential for database administrators and developers migrating from MySQL or building new applications.

Frequently Asked Questions

When should I use this 60-galera.cnf file?

Use this original configuration file when you need to restore MariaDB to its default state after misconfiguration, during fresh installations, or as a baseline for customization. It's particularly useful for troubleshooting when your current config isn't working properly.

How do I restore MariaDB to default settings?

Download this file and replace your current configuration at /etc/mysql/mariadb.conf.d/60-galera.cnf. Make sure to backup your existing configuration first, then restart the MariaDB service to apply the changes.

Is this 60-galera.cnf file secure for production use?

This is the factory-default configuration that ships with MariaDB on Ubuntu 24.04 LTS (Noble Numbat). While it provides a secure baseline, you should review and customize security settings based on your specific production requirements and compliance needs.

What's the difference between this and other OS versions?

This configuration is specifically from Ubuntu 24.04 LTS (Noble Numbat). Different operating systems and versions may have slightly different default settings, security patches, or feature availability. Check the compatibility section above for other OS versions.

Can I use this configuration file for MariaDB troubleshooting?

Yes, this original configuration is excellent for troubleshooting. Compare it with your current settings to identify modifications that might be causing issues, or temporarily replace your config with this one to isolate problems.