Get the default configuration file 50-mysqld_safe.cnf for MariaDB, optimized for Ubuntu 16.04 LTS (Xenial Xerus). This example configuration ensures optimal compatibility and performance for MariaDB, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/mysql/mariadb.conf.d/50-mysqld_safe.cnf.
For more configurations and setup guides, visit our related files section to further customize your system.
[mysqld_safe]
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
socket = /var/run/mysqld/mysqld.sock
nice = 0
skip_log_error
syslog
Download the raw file with wget or curl
wget -O 50-mysqld_safe.cnf.example https://exampleconfig.com/static/raw/mariadb/ubuntu16.04/etc/mysql/mariadb.conf.d/50-mysqld_safe.cnf
curl https://exampleconfig.com/static/raw/mariadb/ubuntu16.04/etc/mysql/mariadb.conf.d/50-mysqld_safe.cnf > 50-mysqld_safe.cnf.example
Other config files you might find useful