srv-stage/files/mariadb/server.cnf
2025-01-19 20:23:14 +01:00

96 lines
2.8 KiB
INI

#
# These groups are read by MySQL server.
# Use it for options that only the server (but not clients) should see
#
# See the examples of server my.cnf files in /usr/share/mysql/
#
# this is read by the standalone daemon and embedded servers
[server]
# this is only for the mysqld standalone daemon
[mysqld]
innodb_locks_unsafe_for_binlog=1
port= 3306
#bind-address=127.0.0.1
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mysqld.pid
user=mysql
datadir=/var/lib/mysql/data
socket=/var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 256
tmp_table_size = 128M
max_heap_table_size = 128M
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 32M
join_buffer_size= 16M
# Try number of CPU's*2 for thread_concurrency
#thread_concurrency = 8
thread_concurrency = 4
#language=french
#ft_stopword_file=/usr/share/mysql/frenchST.txt
#ft_min_word_len=2
# TIMESTAMP with implicit DEFAULT value is deprecated.
#explicit_defaults_for_timestamp
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
expire_logs_days=3
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /usr/local/mysql/data/
innodb_data_home_dir = /var/lib/mysql/innodb
#innodb_data_file_path = ibdata1:10M:autoextend
innodb_data_file_path = ibData1:64M:autoextend
#innodb_log_group_home_dir = /usr/local/mysql/data/
innodb_log_group_home_dir = /var/lib/mysql/logs
#innodb_log_arch_dir = /usr/local/mysql/data/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 256M
#innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
# this is only for embedded server
[embedded]
# This group is only read by MySQL-5.5 servers.
# If you use the same .cnf file for MySQL of different versions,
# use this group for options that older servers don't understand
[mysqld-5.5]
[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log