Some changes in example configuration files.

This commit is contained in:
Christoph 2024-03-18 14:25:33 +01:00
parent 8ef9527036
commit bff3c24c90
4 changed files with 2172 additions and 650 deletions

View File

@ -37,6 +37,22 @@ socket = /run/mysqld/mysqld.sock
#datadir = /data/mysql
## - performance_schema
## -
## - The Performance Schema is a very useful and highly under-utilised tool for
## - monitoring MySQL databases. You can measure all kinds of metrics with it,
## - like bad queries, the read/write ratio, and index usage to name a few.
## -
## - But in the free, open source fork, MariaDB, it's turned off by default, and
## - you have to manually switch it on.
## -
## - It's turned off by default in MariaDB because there is a slight performance hit
## - with using Performance Schema. I think this is only noticeable on high-traffic
## -servers with >100s of queries per second.
## -
performance-schema = ON
## - character-set-server
## -
## - The servers default character set. If you set this variable, you should also
@ -52,11 +68,14 @@ socket = /run/mysqld/mysqld.sock
## - -DDEFAULT_COLLATION=latin1_german1_ci
## -
#character-set-server = utf8
character-set-server = utf8mb4
## - collation-server
## -
## - The server's default collation. See Section 10.14, “Character Set Configuration”.
## -
#collation-server = utf8_general_ci
collation-server = utf8mb4_general_ci
## - sql_mode
@ -157,6 +176,30 @@ secure-file-priv = ""
#local-infile = 1
## - skip_name_resolve
## -
## - Whether to resolve host names when checking client connections. If this variable is OFF,
## - mysqld resolves host names when checking client connections. If it is ON, mysqld uses
## - only IP numbers; in this case, all Host column values in the grant tables must be IP
## - addresses. See Section 5.1.11.2, “DNS Lookups and the Host Cache”.
## -
## - Depending on the network configuration of your system and the Host values for your
## - accounts, clients may need to connect using an explicit --host option,
## - such as --host=127.0.0.1 or --host=::1.
## -
## - An attempt to connect to the host 127.0.0.1 normally resolves to the localhost account.
## - However, this fails if the server is run with skip_name_resolve enabled. If you plan to
## - do that, make sure an account exists that can accept a connection. For example, to be
## - able to connect as root using --host=127.0.0.1 or --host=::1, create these accounts:
## -
## - CREATE USER 'root'@'127.0.0.1' IDENTIFIED BY 'root-password';
## - CREATE USER 'root'@'::1' IDENTIFIED BY 'root-password';
## -
## - Default: OFF
## -
#skip-name-resolve = Off
## - skip_external_locking
## -
## - Affects only MyISAM table access.
@ -194,6 +237,7 @@ bind-address = 127.0.0.1
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
@ -324,6 +368,7 @@ concurrent-insert = 2
## - open-files-limit
## - innodb_open_files
## -
## - put the following lines into /etc/security/limits.conf
## -
@ -353,6 +398,13 @@ innodb-file-per-table = 1
## -
#innodb-data-home_dir = /data/mysql
## - innodb_data_file_path
## -
## - Example:
## - innodb-data-file-path = ibdata1:2000M;ibdata2:10M:autoextend
## -
## - Default (MariaDB: ibdata1:12M:autoextend)
## -
#innodb-data-file-path = ibdata1:2000M;ibdata2:10M:autoextend
## - innodb_log_group_home_dir
@ -365,7 +417,12 @@ innodb-file-per-table = 1
## - data directory. Their size is given by the size of the
## - innodb_log_file_size system variable.
## -
#innodb-log-group-home-dir = /var/lib/mysql/
## - Example:
## - innodb-log-group-home-dir = /var/lib/mysql/
## -
## - Default (MariaDB: ./)
## -
#innodb-log-group-home-dir = ./
## - innodb-buffer-pool-size
## -
@ -423,6 +480,7 @@ innodb_buffer_pool_size = 4G
## - The size in bytes of each log file in a log group.
## -
## - Default: 5242880 (5M)
## - Default: MariaDB 100663296 (96M)
## -
## (Set .._log_file_size to 25 % of buffer pool size)
## -
@ -440,6 +498,7 @@ innodb_log_file_size = 750M
#innodb-log-buffer-size = 8M
#innodb-log-buffer-size = 32M
innodb_log_buffer_size = 256M
#innodb_log_buffer_size = 512M
## - innodb_flush_log_at_trx_commit
## -
@ -468,6 +527,7 @@ innodb_log_buffer_size = 256M
## -
#innodb-flush-log-at-trx-commit = 1
#innodb-flush-log-at-trx-commit = 2
#innodb-flush-log-at-trx-commit = 0
## - innodb_ft_cache_size
## -
@ -502,6 +562,8 @@ innodb_ft_cache_size = 24M
## - Default: 2097152 (2M)
## -
#sort-buffer-size = 2M
#sort-buffer-size = 24M
#sort-buffer-size = 32M
sort-buffer-size = 64M
@ -514,8 +576,11 @@ sort-buffer-size = 64M
## - buffer is also known as the key cache.
## -
## - Default: 8388608 (8M)
## - Default MariaDB: 134217728 (128M)
## -
#key-buffer-size = 64M
key-buffer-size = 384M
#key-buffer-size = 512M
## - read_buffer_size
@ -527,6 +592,7 @@ key-buffer-size = 384M
## - Default: 131072 (128K)
## -
#read-buffer-size = 2M
#read-buffer-size = 16M
read-buffer-size = 32M
## - read_rnd_buffer_size
@ -537,6 +603,7 @@ read-buffer-size = 32M
## - Default: 262144 (256K)
## -
#read-rnd-buffer-size = 8M
#read-rnd-buffer-size = 16M
read-rnd-buffer-size = 32M
@ -547,9 +614,13 @@ read-rnd-buffer-size = 32M
## - ALTER TABLE.
## -
## - Default: 8388608 (8M)
## - Default MariaDB: 134217728 (128M)
## -
##myisam-sort-buffer-size = 32M
#myisam-sort-buffer-size = 64M
myisam-sort-buffer-size = 256M
#myisam-sort-buffer-size = 384M
#myisam-sort-buffer-size = 512M
## - max_allowed_packet
@ -558,6 +629,7 @@ myisam-sort-buffer-size = 256M
## - any parameter sent by the mysql_stmt_send_long_data() C API function.
##
## - Default: 4MB (MySQL 5.6.6), 1MB before that.
## - Default MariaDB: 16777216 (16M)
## -
#max-allowed-packet = 4M
#max-allowed-packet = 32M
@ -575,7 +647,10 @@ max-allowed-packet = 64M
## - closed and reopened), then you should increase the value of the
## - table_open_cache variable.
## -
## - Default MAriaDB: 2000
## -
#table-open-cache = 512
#table_open_cache = 2048
table_open_cache = 8192
## - table_definition_cache
@ -584,8 +659,10 @@ table_open_cache = 8192
## - in the definition cache.
## -
## - Default: (400 + (table_open_cache / 2) since 5.6.8, 400 before
## - Defaiult MariaDB: 400
## -
#table-definition-cache = 1680
table_definition_cache = 3072
#table_definition_cache = 5120
## - max_connect_errors
@ -614,9 +691,12 @@ max-connect-errors = 999999
## - fewer than thread_cache_size threads there.
## -
## - Default: 8 + (max_connections / 100) (5.6.8) , 0 (before)
## - Default MariaDB: 151
## -
#thread-cache-size = 8
#thread_cache_size = 16
thread_cache_size = 32
#thread-cache-size = 300
## - thread_stack
## -
@ -628,7 +708,9 @@ thread_cache_size = 32
## - limits the complexity of the SQL statements that the server can handle,
## - the recursion depth of stored procedures, and other memory-consuming
## - actions.
## -
## - Default: 262144 (256K)
## - Default MariaDB: 299008 (292K)
## -
thread-stack = 262144
@ -643,24 +725,13 @@ thread-stack = 262144
## - Sincs version 5.5, you have to set default-storage-engine
## - to MyISAM, if using skip-innodb
## -
#default-storage-engine=MyISAM
#skip-innodb
## - log-error
## - default_storage_engine
## -
## - Log errors and startup messages to this file. If you omit the file
## - name, MySQL uses host_name.err. If the file name has no extension,
## - the server adds an extension of .err.
## - Default: InnoDB
## -
log-error = /var/log/mysql/mysql.err
## - Query Log
## -
#general-log = on
#general-log_file = /var/log/mysql/mysql.log
#default-storage-engine=MyISAM
## - ft_min_word_len
## -
@ -690,14 +761,46 @@ log-error = /var/log/mysql/mysql.err
## - Hinweis: Wird diese Variable geändern oder den Inhalt der Stoppwortdatei selbst,
## - müssen die FULLTEXT-Indizes neu erstellt werden (REPAIR TABLE tbl_name QUICK. ).
## -
## - Example:
## - ft-stopword-file = /usr/local/mysql/stopwords_utf8_iso8859-15.txt
## - ft-stopword-file = /etc/mysql/stopwords_utf8_iso8859-15.txt
## -
## - Default: (built-in)
## -
#ft-stopword-file = /usr/local/mysql/stopwords_utf8_iso8859-15.txt
## --------------
## - log files
## - general_log_file
## - general_log
## -
## - general_log enables/disables general_log_file..
## -
## - Both location gets rotated by the cronjob.
## - Be aware that this log type is a performance killer.
## - Recommend only changing this at runtime for short testing periods if needed!
## -
general_log_file = /var/log/mysql/mysql.log
general_log = OFF
## - log-error
## -
## - When running under systemd, error logging goes via stdout/stderr to journald
## - and when running legacy init error logging goes to syslog due to
## - /etc/mysql/conf.d/mariadb.conf.d/50-mysqld_safe.cnf
## - Enable this if you want to have error logging into a separate file
## -
log_error = /var/log/mysql/error.log
## - log files
## --------------
## -------------
## - query cache
## - query_cache_type
## -
## - 0 : verhindert das Speichern von Abfragen im und
@ -710,6 +813,10 @@ log-error = /var/log/mysql/mysql.err
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - Default MariaDB: OFF
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query_cache_type = 1
@ -722,6 +829,7 @@ log-error = /var/log/mysql/mysql.err
## -
## - Vorgeabewert ist 1Mbyte
## -
## - But present at MariaDB
## -
## - Removed since MySQL Version 8.0.3
## -
@ -748,9 +856,10 @@ log-error = /var/log/mysql/mysql.err
## -
## - Vorgabewert ist 4Kbyte
## -
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-min-res-unit = 8K
@ -767,11 +876,15 @@ log-error = /var/log/mysql/mysql.err
## -
## - Vorgabewert ist 0, d. h. der Abfrage-Cache ist vorgabeseitig deaktiviert.
## -
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - Default MariaDB: 1048576 (1M)
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-size = 0
#query_cache_size = 32M
#query-cache-size = 128M
#query_cache_size = 1024M
@ -847,6 +960,7 @@ log-queries-not-using-indexes = 0
## - Vorgabewert ist 128K
## -
#join-buffer-size = 384K
#join-buffer-size = 512K
#join_buffer_size = 768K
#join_buffer_size = 1024K
join_buffer_size = 1536K
@ -863,6 +977,7 @@ join_buffer_size = 1536K
## -
## - Vorgabewert ist 16Mbyte
## -
#max-heap-table-size = 48M
#max-heap-table-size = 96M
#max_heap_table_size = 128M
#max_heap_table_size = 768M
@ -883,6 +998,7 @@ max_heap_table_size = 2048M
## - Note:
## - Effective in-memory tmp_table_size is limited to max_heap_table_size.
## -
#tmp-table-size = 48M
#tmp-table-size = 96M
#tmp_table_size = 768M
tmp_table_size = 2048M
@ -907,6 +1023,7 @@ tmp_table_size = 2048M
## -
#optimizer_switch = ''
## - angepasste Einstellungen
## ------------------------------------------
@ -967,6 +1084,7 @@ query_cache_type = 1
## -
#query-cache-limit = 4M
#query_cache_limit = 8M
#query_cache_limit = 64M
query_cache_limit = 128M
@ -1003,9 +1121,11 @@ query-cache-min-res-unit = 8K
## -
## - Vorgabewert ist 0, d. h. der Abfrage-Cache ist vorgabeseitig deaktiviert.
## -
## -
## - Removed since MySQL Version 8.0.3
## -
## - Default MariaDB: 1048576 (1M)
## -
#query-cache-size = 0
#query_cache_size = 32M
#query-cache-size = 128M
query_cache_size = 1024M
@ -1013,6 +1133,7 @@ query_cache_size = 1024M
## - query cache
## -------------
## - optimizer_switch
## -
## - see:
@ -1057,10 +1178,17 @@ optimizer_use_condition_selectivity = 1
[mariadb-10.3]
[mariadb-10.5]
[mariadb-10.11]
[mysqldump]
quick
max-allowed-packet = 32M
max-allowed-packet = 1024M
default-character-set = utf8mb4
[mysql]
no-auto-rehash
@ -1068,6 +1196,7 @@ no-auto-rehash
#safe-updates
local-infile = 1
[myisamchk]
key-buffer-size = 256M
sort-buffer-size = 256M
@ -1075,9 +1204,6 @@ read-buffer = 2M
write-buffer = 2M
## ------------------------------------------
## - angepasste Einstellungen
## - ft_min_word_len
## -
## - Die minimale Länge des Wortes, das in einem FULLTEXT-Index enthalten sein darf.
@ -1095,9 +1221,6 @@ write-buffer = 2M
## - Vorgabewert ist 4
#ft-min-word-len = 3
## - angepasste Einstellungen
## ------------------------------------------
[mysqlhotcopy]
interactive-timeout

View File

@ -37,6 +37,22 @@ socket = /run/mysqld/mysqld.sock
#datadir = /data/mysql
## - performance_schema
## -
## - The Performance Schema is a very useful and highly under-utilised tool for
## - monitoring MySQL databases. You can measure all kinds of metrics with it,
## - like bad queries, the read/write ratio, and index usage to name a few.
## -
## - But in the free, open source fork, MariaDB, it's turned off by default, and
## - you have to manually switch it on.
## -
## - It's turned off by default in MariaDB because there is a slight performance hit
## - with using Performance Schema. I think this is only noticeable on high-traffic
## -servers with >100s of queries per second.
## -
performance-schema = ON
## - character-set-server
## -
## - The servers default character set. If you set this variable, you should also
@ -52,11 +68,14 @@ socket = /run/mysqld/mysqld.sock
## - -DDEFAULT_COLLATION=latin1_german1_ci
## -
#character-set-server = utf8
character-set-server = utf8mb4
## - collation-server
## -
## - The server's default collation. See Section 10.14, “Character Set Configuration”.
## - The server's default collation. See Section 10.14, Character Set Configuration.
## -
#collation-server = utf8_general_ci
collation-server = utf8mb4_general_ci
## - sql_mode
@ -157,6 +176,30 @@ secure-file-priv = ""
#local-infile = 1
## - skip_name_resolve
## -
## - Whether to resolve host names when checking client connections. If this variable is OFF,
## - mysqld resolves host names when checking client connections. If it is ON, mysqld uses
## - only IP numbers; in this case, all Host column values in the grant tables must be IP
## - addresses. See Section 5.1.11.2, “DNS Lookups and the Host Cache”.
## -
## - Depending on the network configuration of your system and the Host values for your
## - accounts, clients may need to connect using an explicit --host option,
## - such as --host=127.0.0.1 or --host=::1.
## -
## - An attempt to connect to the host 127.0.0.1 normally resolves to the localhost account.
## - However, this fails if the server is run with skip_name_resolve enabled. If you plan to
## - do that, make sure an account exists that can accept a connection. For example, to be
## - able to connect as root using --host=127.0.0.1 or --host=::1, create these accounts:
## -
## - CREATE USER 'root'@'127.0.0.1' IDENTIFIED BY 'root-password';
## - CREATE USER 'root'@'::1' IDENTIFIED BY 'root-password';
## -
## - Default: OFF
## -
#skip-name-resolve = Off
## - skip_external_locking
## -
## - Affects only MyISAM table access.
@ -166,7 +209,7 @@ secure-file-priv = ""
## -
## - Default: ON
## -
skip-external-locking
skip-external-locking = On
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
@ -194,6 +237,7 @@ bind-address = 127.0.0.1
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
@ -324,6 +368,7 @@ concurrent-insert = 2
## - open-files-limit
## - innodb_open_files
## -
## - put the following lines into /etc/security/limits.conf
## -
@ -349,11 +394,18 @@ innodb-file-per-table = 1
## - innodb_data_home_dir
## -
## - Default: MySQL data directory
## - Default: MySQL data directory (datadir)
## -
#innodb-data-home_dir = /data/mysql
#innodb-data-file-path = ibdata1:2000M;ibdata2:10M:autoextend
## - innodb_data_file_path
## -
## - Example:
## - innodb-data-file-path = ibdata1:2000M;ibdata2:10M:autoextend
## -
## - Default (MariaDB: ibdata1:12M:autoextend)
## -
#innodb-data-file-path = ibdata1:12M:autoextend
## - innodb_log_group_home_dir
## -
@ -365,7 +417,12 @@ innodb-file-per-table = 1
## - data directory. Their size is given by the size of the
## - innodb_log_file_size system variable.
## -
#innodb-log-group-home-dir = /var/lib/mysql/
## - Example:
## - innodb-log-group-home-dir = /var/lib/mysql/
## -
## - Default (MariaDB: ./)
## -
#innodb-log-group-home-dir = ./
## - innodb-buffer-pool-size
## -
@ -423,10 +480,11 @@ innodb-buffer-pool-size = 1024M
## - The size in bytes of each log file in a log group.
## -
## - Default: 5242880 (5M)
## - Default: MariaDB 100663296 (96M)
## -
## (Set .._log_file_size to 25 % of buffer pool size)
## -
#innodb-log-file-size = 100M
#innodb-log-file-size = 96M
innodb-log-file-size = 256M
#innodb_log_file_size = 750M
@ -440,6 +498,7 @@ innodb-log-file-size = 256M
#innodb-log-buffer-size = 8M
innodb-log-buffer-size = 32M
#innodb_log_buffer_size = 256M
#innodb_log_buffer_size = 512M
## - innodb_flush_log_at_trx_commit
## -
@ -468,6 +527,7 @@ innodb-log-buffer-size = 32M
## -
#innodb-flush-log-at-trx-commit = 1
#innodb-flush-log-at-trx-commit = 2
#innodb-flush-log-at-trx-commit = 0
## - innodb_ft_cache_size
## -
@ -503,10 +563,11 @@ innodb_ft_cache_size = 24M
## -
#sort-buffer-size = 2M
sort-buffer-size = 24M
#sort-buffer-size = 32M
#sort-buffer-size = 64M
#_ - key_buffer_size
## - key_buffer_size
## -
## - key_buffer_size is a MyISAM parameter
## -
@ -515,9 +576,11 @@ sort-buffer-size = 24M
## - buffer is also known as the key cache.
## -
## - Default: 8388608 (8M)
## - Default MariaDB: 134217728 (128M)
## -
key-buffer-size = 64M
#key-buffer-size = 384M
#key-buffer-size = 512M
## - read_buffer_size
@ -551,11 +614,13 @@ read-rnd-buffer-size = 16M
## - ALTER TABLE.
## -
## - Default: 8388608 (8M)
## - Default MariaDB: 134217728 (128M)
## -
#myisam-sort-buffer-size = 32M
myisam-sort-buffer-size = 64M
#myisam-sort-buffer-size = 256M
#myisam-sort-buffer-size = 384M
#myisam-sort-buffer-size = 512M
## - max_allowed_packet
## -
@ -563,6 +628,7 @@ myisam-sort-buffer-size = 64M
## - any parameter sent by the mysql_stmt_send_long_data() C API function.
##
## - Default: 4MB (MySQL 5.6.6), 1MB before that.
## - Default MariaDB: 16777216 (16M)
## -
#max-allowed-packet = 4M
#max-allowed-packet = 32M
@ -580,6 +646,8 @@ max-allowed-packet = 64M
## - closed and reopened), then you should increase the value of the
## - table_open_cache variable.
## -
## - Default MAriaDB: 2000
## -
#table-open-cache = 512
table_open_cache = 2048
#table_open_cache = 8192
@ -590,6 +658,7 @@ table_open_cache = 2048
## - in the definition cache.
## -
## - Default: (400 + (table_open_cache / 2) since 5.6.8, 400 before
## - Defaiult MariaDB: 400
## -
#table-definition-cache = 1680
table_definition_cache = 3072
@ -621,10 +690,12 @@ max-connect-errors = 999999
## - fewer than thread_cache_size threads there.
## -
## - Default: 8 + (max_connections / 100) (5.6.8) , 0 (before)
## - Default MariaDB: 151
## -
#thread-cache-size = 8
thread_cache_size = 16
#thread_cache_size = 32
#thread-cache-size = 300
## - thread_stack
## -
@ -636,7 +707,9 @@ thread_cache_size = 16
## - limits the complexity of the SQL statements that the server can handle,
## - the recursion depth of stored procedures, and other memory-consuming
## - actions.
## -
## - Default: 262144 (256K)
## - Default MariaDB: 299008 (292K)
## -
thread-stack = 262144
@ -651,23 +724,13 @@ thread-stack = 262144
## - Sincs version 5.5, you have to set default-storage-engine
## - to MyISAM, if using skip-innodb
## -
#default-storage-engine=MyISAM
#skip-innodb
## - log-error
## - default_storage_engine
## -
## - Log errors and startup messages to this file. If you omit the file
## - name, MySQL uses host_name.err. If the file name has no extension,
## - the server adds an extension of .err.
## - Default: InnoDB
## -
log-error = /var/log/mysql/mysql.err
## - Query Log
## -
#general-log = on
#general-log_file = /var/log/mysql/mysql.log
#default-storage-engine=MyISAM
## - ft_min_word_len
@ -698,14 +761,46 @@ log-error = /var/log/mysql/mysql.err
## - Hinweis: Wird diese Variable geändern oder den Inhalt der Stoppwortdatei selbst,
## - müssen die FULLTEXT-Indizes neu erstellt werden (REPAIR TABLE tbl_name QUICK. ).
## -
## - Example:
## - ft-stopword-file = /usr/local/mysql/stopwords_utf8_iso8859-15.txt
## - ft-stopword-file = /etc/mysql/stopwords_utf8_iso8859-15.txt
## -
## - Default: (built-in)
## -
#ft-stopword-file = /usr/local/mysql/stopwords_utf8_iso8859-15.txt
## --------------
## - log files
## - general_log_file
## - general_log
## -
## - general_log enables/disables general_log_file..
## -
## - Both location gets rotated by the cronjob.
## - Be aware that this log type is a performance killer.
## - Recommend only changing this at runtime for short testing periods if needed!
## -
general_log_file = /var/log/mysql/mysql.log
general_log = OFF
## - log-error
## -
## - When running under systemd, error logging goes via stdout/stderr to journald
## - and when running legacy init error logging goes to syslog due to
## - /etc/mysql/conf.d/mariadb.conf.d/50-mysqld_safe.cnf
## - Enable this if you want to have error logging into a separate file
## -
log_error = /var/log/mysql/error.log
## - log files
## --------------
## -------------
## - query cache
## - query_cache_type
## -
## - 0 : verhindert das Speichern von Abfragen im und
@ -718,6 +813,10 @@ log-error = /var/log/mysql/mysql.err
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - Default MariaDB: OFF
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query_cache_type = 1
@ -730,6 +829,7 @@ log-error = /var/log/mysql/mysql.err
## -
## - Vorgeabewert ist 1Mbyte
## -
## - But present at MariaDB
## -
## - Removed since MySQL Version 8.0.3
## -
@ -756,9 +856,10 @@ log-error = /var/log/mysql/mysql.err
## -
## - Vorgabewert ist 4Kbyte
## -
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-min-res-unit = 8K
@ -775,11 +876,15 @@ log-error = /var/log/mysql/mysql.err
## -
## - Vorgabewert ist 0, d. h. der Abfrage-Cache ist vorgabeseitig deaktiviert.
## -
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - Default MariaDB: 1048576 (1M)
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-size = 0
#query_cache_size = 32M
#query-cache-size = 128M
#query_cache_size = 1024M
@ -855,6 +960,7 @@ log-queries-not-using-indexes = 0
## - Vorgabewert ist 128K
## -
#join-buffer-size = 384K
#join-buffer-size = 512K
join_buffer_size = 768K
#join_buffer_size = 1024K
#join_buffer_size = 1536K
@ -871,6 +977,7 @@ join_buffer_size = 768K
## -
## - Vorgabewert ist 16Mbyte
## -
#max-heap-table-size = 48M
#max-heap-table-size = 96M
#max_heap_table_size = 128M
max_heap_table_size = 768M
@ -891,6 +998,7 @@ max_heap_table_size = 768M
## - Note:
## - Effective in-memory tmp_table_size is limited to max_heap_table_size.
## -
#tmp-table-size = 48M
#tmp-table-size = 96M
tmp_table_size = 768M
#tmp_table_size = 2048M
@ -1016,6 +1124,7 @@ query-cache-min-res-unit = 8K
## -
## - Removed since MySQL Version 8.0.3
## -
#query-cache-size = 0
#query_cache_size = 32M
query-cache-size = 128M
#query_cache_size = 1024M
@ -1068,10 +1177,17 @@ query-cache-size = 128M
[mariadb-10.3]
[mariadb-10.5]
[mariadb-10.11]
[mysqldump]
quick
max-allowed-packet = 512M
default-character-set = utf8mb4
[mysql]
no-auto-rehash
@ -1079,6 +1195,7 @@ no-auto-rehash
#safe-updates
local-infile = 1
[myisamchk]
key-buffer-size = 256M
sort-buffer-size = 256M
@ -1086,9 +1203,6 @@ read-buffer = 2M
write-buffer = 2M
## ------------------------------------------
## - angepasste Einstellungen
## - ft_min_word_len
## -
## - Die minimale Länge des Wortes, das in einem FULLTEXT-Index enthalten sein darf.
@ -1102,13 +1216,10 @@ write-buffer = 2M
## - [myisamchk]
## - ft_min_word_len=3
## -
## -
## - Vorgabewert ist 4
## -
#ft-min-word-len = 3
## - angepasste Einstellungen
## ------------------------------------------
[mysqlhotcopy]
interactive-timeout

File diff suppressed because it is too large Load Diff

View File

@ -36,6 +36,7 @@ port = 3306
socket = /run/mysqld/mysqld.sock
#datadir = /data/mysql
## - performance_schema
## -
## - The Performance Schema is a very useful and highly under-utilised tool for
@ -72,6 +73,7 @@ character-set-server = utf8mb4
## - collation-server
## -
## - The server's default collation. See Section 10.14, “Character Set Configuration”.
## -
#collation-server = utf8_general_ci
collation-server = utf8mb4_general_ci
@ -127,7 +129,6 @@ collation-server = utf8mb4_general_ci
## -
tls_version=TLSv1.2,TLSv1.3
## - secure-file-priv
## -
## - This variable is used to limit the effect of data import and export operations,
@ -236,6 +237,7 @@ bind-address = 127.0.0.1
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
@ -366,6 +368,7 @@ concurrent-insert = 2
## - open-files-limit
## - innodb_open_files
## -
## - put the following lines into /etc/security/limits.conf
## -
@ -395,6 +398,13 @@ innodb-file-per-table = On
## -
#innodb-data-home_dir = /data/mysql
## - innodb_data_file_path
## -
## - Example:
## - innodb-data-file-path = ibdata1:2000M;ibdata2:10M:autoextend
## -
## - Default (MariaDB: ibdata1:12M:autoextend)
## -
#innodb-data-file-path = ibdata1:2000M;ibdata2:10M:autoextend
## - innodb_log_group_home_dir
@ -407,6 +417,11 @@ innodb-file-per-table = On
## - data directory. Their size is given by the size of the
## - innodb_log_file_size system variable.
## -
## - Example:
## - innodb-log-group-home-dir = /var/lib/mysql/
## -
## - Default (MariaDB: ./)
## -
#innodb-log-group-home-dir = /var/lib/mysql/
## - innodb-buffer-pool-size
@ -465,6 +480,7 @@ innodb_buffer_pool_size = 4G
## - The size in bytes of each log file in a log group.
## -
## - Default: 5242880 (5M)
## - Default: MariaDB 100663296 (96M)
## -
## (Set .._log_file_size to 25 % of buffer pool size)
## -
@ -513,7 +529,6 @@ innodb_log_buffer_size = 512M
#innodb-flush-log-at-trx-commit = 2
#innodb-flush-log-at-trx-commit = 0
## - innodb_ft_cache_size
## -
## - InnoDB Fulltext search cache size in bytes.
@ -525,7 +540,6 @@ innodb_log_buffer_size = 512M
## -
innodb_ft_cache_size = 24M
## - innodb_lock_wait_timeout
## -
## - The length of time in seconds an InnoDB transaction waits for a row
@ -562,7 +576,9 @@ sort-buffer-size = 64M
## - buffer is also known as the key cache.
## -
## - Default: 8388608 (8M)
## - Default MariaDB: 134217728 (128M)
## -
#key-buffer-size = 64M
#key-buffer-size = 384M
key-buffer-size = 512M
@ -577,7 +593,6 @@ key-buffer-size = 512M
## -
#read-buffer-size = 2M
#read-buffer-size = 16M
#read-buffer-size = 24M
read-buffer-size = 32M
## - read_rnd_buffer_size
@ -588,6 +603,7 @@ read-buffer-size = 32M
## - Default: 262144 (256K)
## -
#read-rnd-buffer-size = 8M
#read-rnd-buffer-size = 16M
read-rnd-buffer-size = 32M
@ -600,6 +616,7 @@ read-rnd-buffer-size = 32M
## - Default: 8388608 (8M)
## - Default MariaDB: 134217728 (128M)
## -
#myisam-sort-buffer-size = 32M
#myisam-sort-buffer-size = 64M
myisam-sort-buffer-size = 256M
#myisam-sort-buffer-size = 384M
@ -612,6 +629,7 @@ myisam-sort-buffer-size = 256M
## - any parameter sent by the mysql_stmt_send_long_data() C API function.
##
## - Default: 4MB (MySQL 5.6.6), 1MB before that.
## - Default MariaDB: 16777216 (16M)
## -
#max-allowed-packet = 4M
#max-allowed-packet = 32M
@ -632,6 +650,7 @@ max-allowed-packet = 512M
## - Default MAriaDB: 2000
## -
#table-open-cache = 512
#table_open_cache = 2048
table_open_cache = 8192
## - table_definition_cache
@ -643,9 +662,7 @@ table_open_cache = 8192
## - Defaiult MariaDB: 400
## -
#table-definition-cache = 1680
#table-definition-cache = 1936
#table-definition-cache = 3472
#table-definition-cache = 449
#table-definition-cache = 3072
table_definition_cache = 5120
## - max_connect_errors
@ -654,6 +671,19 @@ table_definition_cache = 5120
## -
max-connect-errors = 999999
## - thread_concurrency
## -
## - NOTE:
## - This variable is specific to Solaris 8 and earlier systems.
## -
## - This variable is deprecated as of MySQL 5.6.1 and is removed in MySQL 5.7.
## - You should remove this from MySQL configuration files whenever you see it
## - unless they are for Solaris 8 or earlier
## -
## - (Try number of CPU's*2 for thread_concurrency)
## -
#thread-concurrency = 16
## - thread_cache_size
## -
## - How many threads the server should cache for reuse. When a client
@ -664,6 +694,8 @@ max-connect-errors = 999999
## - Default MariaDB: 151
## -
#thread-cache-size = 8
#thread_cache_size = 16
#thread_cache_size = 32
thread_cache_size = 300
## - thread_stack
@ -729,14 +761,18 @@ thread_cache_size = 300
## - Hinweis: Wird diese Variable geändern oder den Inhalt der Stoppwortdatei selbst,
## - müssen die FULLTEXT-Indizes neu erstellt werden (REPAIR TABLE tbl_name QUICK. ).
## -
## - Example:
## - ft-stopword-file = /usr/local/mysql/stopwords_utf8_iso8859-15.txt
## - ft-stopword-file = /etc/mysql/stopwords_utf8_iso8859-15.txt
## -
## - Default: (built-in)
## -
#ft-stopword-file = /usr/local/mysql/stopwords_utf8_iso8859-15.txt
## --------------
## - log files
## - Query Log
## -
## - general_log_file
## - general_log
## -
@ -749,15 +785,113 @@ thread_cache_size = 300
general_log_file = /var/log/mysql/mysql.log
general_log = OFF
## - log-error
## -
## - Log errors and startup messages to this file. If you omit the file
## - name, MySQL uses host_name.err. If the file name has no extension,
## - the server adds an extension of .err.
## - When running under systemd, error logging goes via stdout/stderr to journald
## - and when running legacy init error logging goes to syslog due to
## - /etc/mysql/conf.d/mariadb.conf.d/50-mysqld_safe.cnf
## - Enable this if you want to have error logging into a separate file
## -
log-error = /var/log/mysql/mysql.err
## - log files
## --------------
## -------------
## - query cache
## - query_cache_type
## -
## - 0 : verhindert das Speichern von Abfragen im und
## - das Abrufen aus dem Cache
## - 1 : gestattet das Speichern von Abfragen im Cache.
## - Ausgenommen sind Anweisungen, die mit
## - SELECT SQL_NO_CACHE beginnen.
## - 2 : speichert nur diejenigen Anweisungen im Cache,
## - die mit SELECT SQL_CACHE beginnen.
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - Default MariaDB: OFF
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
query_cache_type = 0
## - query_cache_limit
## -
## - Gibt die maximale Größe einzelner Abfrageergebnisse an, die im
## - Cache gespeichert werden können.
## -
## - Vorgeabewert ist 1Mbyte
## -
## - But present at MariaD
## -
## - Removed since MySQL Version 8.0.3
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-limit = 4M
#query_cache_limit = 8M
#query_cache_limit = 128M
## - query_cache_min_res_unit
## -
## - Die im Abfrage-Cache abgelegten Ergebnisse, werden nicht am Stück
## - verwaltet. Der Abfrage-Cache reserviert Blöcke zur Speicherung dieser
## - Daten nach Bedarf, d. h. wenn ein Block voll ist, wird der nächste
## - zugewiesen. Da der Speicherreservierungsvorgang (in zeitlicher Hinsicht)
## - aufwändig ist, reserviert der Abfrage-Cache die Blöcke mit einer
## - Mindestgröße, die durch die Systemvariable query_cache_min_res_unit
## - festgelegt wird. Wird eine Abfrage ausgeführt, dann wird der letzte
## - Ergebnisblock auf die tatsächliche Datengröße zugeschnitten, sodass
## - unbenutzter Speicher freigegeben wird.
## -
## - Siehe auch http://dev.mysql.com/doc/refman/5.1/de/query-cache-configuration.html
## -
## - Vorgabewert ist 4Kbyte
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-min-res-unit = 8K
## - query_cache_size
## -
## - Die Größe des Abfrage-Caches.
## -
## - Wird query_cache_size auf einen Wert größer Null gesetzt, so ist zu beachten,
## - dass der Abfrage-Cache eine Mindestgröße von ca. 40 Kbyte benötigt, um seine
## - Strukturen zuzuweisen. (Der exakte Wert hängt von der Systemarchitektur ab.)
## - Wird der Wert zu niedrig angesetzt, wird eine Warnung ausgegeben.
## -
## - Vorgabewert ist 0, d. h. der Abfrage-Cache ist vorgabeseitig deaktiviert.
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - Default MariaDB: 1048576 (1M)
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-size = 0
#query_cache_size = 32M
#query-cache-size = 128M
#query_cache_size = 1024M
## - query cache
## -------------
## --------------
## - slow queries
@ -810,98 +944,6 @@ log-queries-not-using-indexes = 0
## - slow queries
## --------------
## -------------
## - query cache
## - query_cache_type
## -
## - 0 : verhindert das Speichern von Abfragen im und
## - das Abrufen aus dem Cache
## - 1 : gestattet das Speichern von Abfragen im Cache.
## - Ausgenommen sind Anweisungen, die mit
## - SELECT SQL_NO_CACHE beginnen.
## - 2 : speichert nur diejenigen Anweisungen im Cache,
## - die mit SELECT SQL_CACHE beginnen.
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - Default MariaDB: OFF
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
query_cache_type = 0
## - query_cache_limit
## -
## - Gibt die maximale Größe einzelner Abfrageergebnisse an, die im
## - Cache gespeichert werden können.
## -
## -
## - Vorgeabewert ist 1Mbyte
## -
## - Removed since MySQL Version 8.0.3
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-limit = 4M
#query_cache_limit = 8M
#query_cache_limit = 128M
## - query_cache_min_res_unit
## -
## - Die im Abfrage-Cache abgelegten Ergebnisse, werden nicht am Stück
## - verwaltet. Der Abfrage-Cache reserviert Blöcke zur Speicherung dieser
## - Daten nach Bedarf, d. h. wenn ein Block voll ist, wird der nächste
## - zugewiesen. Da der Speicherreservierungsvorgang (in zeitlicher Hinsicht)
## - aufwändig ist, reserviert der Abfrage-Cache die Blöcke mit einer
## - Mindestgröße, die durch die Systemvariable query_cache_min_res_unit
## - festgelegt wird. Wird eine Abfrage ausgeführt, dann wird der letzte
## - Ergebnisblock auf die tatsächliche Datengröße zugeschnitten, sodass
## - unbenutzter Speicher freigegeben wird.
## -
## - Siehe auch http://dev.mysql.com/doc/refman/5.1/de/query-cache-configuration.html
## -
## -
## - Vorgabewert ist 4Kbyte
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-min-res-unit = 8K
## - query_cache_size
## -
## - Die Größe des Abfrage-Caches.
## -
## - Wird query_cache_size auf einen Wert größer Null gesetzt, so ist zu beachten,
## - dass der Abfrage-Cache eine Mindestgröße von ca. 40 Kbyte benötigt, um seine
## - Strukturen zuzuweisen. (Der exakte Wert hängt von der Systemarchitektur ab.)
## - Wird der Wert zu niedrig angesetzt, wird eine Warnung ausgegeben.
## -
## - Vorgabewert ist 0, d. h. der Abfrage-Cache ist vorgabeseitig deaktiviert.
## -
## -
## - Removed since MySQL Version 8.0.3
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query_cache_size = 32M
#query-cache-size = 128M
#query_cache_size = 1024M
## - query cache
## -------------
## - join_buffer_size
## -
## - Die Größe des Puffers, der für Joins benutzt wird, die keine Indizes verwenden
@ -919,6 +961,7 @@ query_cache_type = 0
## - Vorgabewert ist 128K
## -
#join-buffer-size = 384K
#join-buffer-size = 512K
join_buffer_size = 768K
#join_buffer_size = 1024K
#join_buffer_size = 1536K
@ -935,6 +978,7 @@ join_buffer_size = 768K
## -
## - Vorgabewert ist 16Mbyte
## -
#max-heap-table-size = 48M
#max-heap-table-size = 96M
#max_heap_table_size = 128M
#max_heap_table_size = 768M
@ -955,6 +999,7 @@ max_heap_table_size = 2048M
## - Note:
## - Effective in-memory tmp_table_size is limited to max_heap_table_size.
## -
#tmp-table-size = 48M
#tmp-table-size = 96M
#tmp_table_size = 768M
tmp_table_size = 2048M
@ -1040,6 +1085,7 @@ query_cache_type = 0
## -
#query-cache-limit = 4M
#query_cache_limit = 8M
#query_cache_limit = 64M
query_cache_limit = 128M
@ -1076,7 +1122,6 @@ query-cache-min-res-unit = 8K
## -
## - Vorgabewert ist 0, d. h. der Abfrage-Cache ist vorgabeseitig deaktiviert.
## -
## -
## - Removed since MySQL Version 8.0.3
## -
## - Default MariaDB: 1048576 (1M)
@ -1134,10 +1179,17 @@ optimizer_use_condition_selectivity = 1
[mariadb-10.3]
[mariadb-10.5]
[mariadb-10.11]
[mysqldump]
quick
max-allowed-packet = 512
max-allowed-packet = 1024M
default-character-set = utf8mb4
[mysql]
no-auto-rehash
@ -1145,6 +1197,7 @@ no-auto-rehash
#safe-updates
local-infile = 1
[myisamchk]
key-buffer-size = 256M
sort-buffer-size = 256M
@ -1152,9 +1205,6 @@ read-buffer = 2M
write-buffer = 2M
## ------------------------------------------
## - angepasste Einstellungen
## - ft_min_word_len
## -
## - Die minimale Länge des Wortes, das in einem FULLTEXT-Index enthalten sein darf.
@ -1172,9 +1222,6 @@ write-buffer = 2M
## - Vorgabewert ist 4
#ft-min-word-len = 3
## - angepasste Einstellungen
## ------------------------------------------
[mysqlhotcopy]
interactive-timeout