Files
addons/mariadb/data/mariadb-server.cnf
Franck Nijhof bd438e7570 Rewrite MariaDB add-on (#1067)
* mariadb: Pin add-on to Alpine 3.11

* mariadb: Redirect MariaDB error log to add-on logs

* mariadb: Remove grant and host options

* mariadb: Add support for the mysql service

* mariadb: Use a more secure default on install

* mariadb: Skip DNS name resolving

* mariadb: Improve integrity checks and recovery

* mariadb: Small tweaks to shell scripts

* mariadb: Tune MariaDB for lower memory usage

* mariadb: Update documentation to match changes

* mariadb: Update changelog, bump version 2.0

* mariadb: Fix log ouput redirect for non-local builds

* Close port to world

* mariadb: Fix issue with user permissions

* mariadb: Ensure we are using a proper collation set

* mariadb: Add upgrade process for internal mariadb system tables

* mariadb: Change default username from hass to homeassistant

* mariadb: Update changelog

* mariadb: Update readme

Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2020-02-14 14:03:29 +01:00

41 lines
849 B
INI

[mysqld]
port=3306
log_error=mariadb.err
# Persistent storage location
datadir=/data/databases
# Use a proper collation set
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
# Do not resolve DNS names
skip-name-resolve
# Tune for low-end devices (Like a Raspberry Pi)
key_buffer_size = 16M
max_connections = 64
myisam_recover_options = FORCE
myisam_sort_buffer_size = 8M
net_buffer_length = 16K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
sort_buffer_size = 512K
join_buffer_size = 128K
table_open_cache = 64
thread_cache_size = 8
thread_stack = 192K
tmp_table_size = 16M
# Disable query cache
query_cache_limit = 1M
query_cache_size = 0M
query_cache_type = 0
# InnoDB Tweaks
innodb_buffer_pool_instances = 1
innodb_buffer_pool_size = 64M
innodb_log_buffer_size = 8M
innodb_log_file_size = 48M
max_binlog_size = 96M