Adjust configurations mostly for MariasDB.
This commit is contained in:
247
install_mysql.sh
247
install_mysql.sh
@@ -3296,9 +3296,9 @@ pid-file = ${SYSTEMD_PID_DIR}/mysqld.pid
|
||||
## - This is OFF if mysqld uses external locking (system locking),
|
||||
## - ON if external locking is disabled.
|
||||
## -
|
||||
## - Default: ON
|
||||
## - Default: 1 oder ON
|
||||
## -
|
||||
skip-external-locking
|
||||
skip_external_locking = 1
|
||||
|
||||
|
||||
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
|
||||
@@ -3310,6 +3310,17 @@ skip-external-locking
|
||||
#skip-networking
|
||||
|
||||
|
||||
## - skip_name_resolve
|
||||
## -
|
||||
## - If set to 1 (0 is the default), only IP addresses are used for connections.
|
||||
## - Host names are not resolved. All host values in the GRANT tables must be
|
||||
## - IP addresses (or localhost).
|
||||
## -
|
||||
## - Default vaue is: 0 oder OFF
|
||||
## -
|
||||
#skip_name_resolve = 0
|
||||
|
||||
|
||||
# Instead of skip-networking the default is now to listen only on
|
||||
# localhost which is more compatible and is not less secure.
|
||||
#
|
||||
@@ -3819,7 +3830,7 @@ log-error = $_mysql_error_log
|
||||
|| ( [[ "$MYSQL_MAJOR_VERSION" -eq 8 ]] && [[ "$MYSQL_MINOR_VERSION" -eq 0 ]] \
|
||||
&& [[ $MYSQL_PATCH_LEVEL -ge 3 ]] ); then
|
||||
echo "
|
||||
## - die mit SELECT SQL_CACHE beginnen.
|
||||
## -
|
||||
## - Removed since Version 8.0.3
|
||||
## -
|
||||
#query_cache_type = 1" >> ${logdir}/main.log
|
||||
@@ -3844,7 +3855,7 @@ log-error = $_mysql_error_log
|
||||
|| ( [[ "$MYSQL_MAJOR_VERSION" -eq 8 ]] && [[ "$MYSQL_MINOR_VERSION" -eq 0 ]] \
|
||||
&& [[ $MYSQL_PATCH_LEVEL -ge 3 ]] ); then
|
||||
echo "
|
||||
## - die mit SELECT SQL_CACHE beginnen.
|
||||
## -
|
||||
## - Removed since Version 8.0.3
|
||||
## -
|
||||
#query-cache-limit = 4M" >> ${logdir}/main.log
|
||||
@@ -3878,7 +3889,7 @@ log-error = $_mysql_error_log
|
||||
|| ( [[ "$MYSQL_MAJOR_VERSION" -eq 8 ]] && [[ "$MYSQL_MINOR_VERSION" -eq 0 ]] \
|
||||
&& [[ $MYSQL_PATCH_LEVEL -ge 3 ]] ); then
|
||||
echo "
|
||||
## - die mit SELECT SQL_CACHE beginnen.
|
||||
## -
|
||||
## - Removed since Version 8.0.3
|
||||
## -
|
||||
#query-cache-min-res-unit = 8K" >> ${logdir}/main.log
|
||||
@@ -3907,7 +3918,7 @@ log-error = $_mysql_error_log
|
||||
|| ( [[ "$MYSQL_MAJOR_VERSION" -eq 8 ]] && [[ "$MYSQL_MINOR_VERSION" -eq 0 ]] \
|
||||
&& [[ $MYSQL_PATCH_LEVEL -ge 3 ]] ); then
|
||||
echo "
|
||||
## - die mit SELECT SQL_CACHE beginnen.
|
||||
## -
|
||||
## - Removed since Version 8.0.3
|
||||
## -
|
||||
#query-cache-size = 32M
|
||||
@@ -4023,6 +4034,117 @@ log-queries-not-using-indexes = 0
|
||||
#tmp-table-size = 96M
|
||||
|
||||
|
||||
# This group is only read by MariaDB servers, not by MySQL.
|
||||
# If you use the same .cnf file for MySQL and MariaDB,
|
||||
# you can put MariaDB-only options here
|
||||
[mariadb]
|
||||
|
||||
## - innodb_purge_threads
|
||||
## -
|
||||
## - Number of background threads dedicated to InnoDB purge operations. The range
|
||||
## - is 1 to 32. At least one background thread is always used from MariaDB 10.0.
|
||||
## -
|
||||
## - The default has been increased from 1 to 4 in MariaDB 10.2.2. Setting to a
|
||||
## - value greater than 1 creates that many separate purge threads. This can improve
|
||||
## - efficiency in some cases, such as when performing DML operations on many tables.
|
||||
## - In MariaDB 5.5, the options are 0 and 1. If set to 0, the default, purging is
|
||||
## - done with the primary thread. If set to 1, purging is done on a separate thread,
|
||||
## - which could reduce contention. See also innodb_purge_batch_size.
|
||||
## -
|
||||
## - Default Value:
|
||||
## -
|
||||
## - 4 (>= MariaDB 10.2.2)
|
||||
## - 1 (>=MariaDB 10.0 to <= MariaDB 10.2.1)
|
||||
#innodb_purge_threads = 4
|
||||
|
||||
|
||||
## -------------
|
||||
## - 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
|
||||
## -
|
||||
#query_cache_type = 1
|
||||
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
|
||||
## -
|
||||
## - But present at MariaDB
|
||||
## -
|
||||
#query-cache-limit = 4M
|
||||
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
|
||||
## -
|
||||
#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 1Mbyte, d. h. der Abfrage-Cache ist vorgabeseitig deaktiviert.
|
||||
## -
|
||||
## -
|
||||
## - Removed since MySQL Version 8.0.3
|
||||
## -
|
||||
## - But present at MariaDB
|
||||
## -
|
||||
query_cache_size = 128M
|
||||
|
||||
## - query cache
|
||||
## -------------
|
||||
|
||||
# This group is only read by MariaDB-10.3 servers.
|
||||
# If you use the same .cnf file for MariaDB of different versions,
|
||||
# use this group for options that older servers don't understand
|
||||
[mariadb-10.3]
|
||||
|
||||
|
||||
## - angepasste Einstellungen
|
||||
## ------------------------------------------
|
||||
|
||||
@@ -5005,10 +5127,123 @@ log-queries-not-using-indexes = 0
|
||||
#tmp-table-size = 96M
|
||||
|
||||
|
||||
|
||||
## - angepasste Einstellungen
|
||||
## ------------------------------------------
|
||||
|
||||
|
||||
# This group is only read by MariaDB servers, not by MySQL.
|
||||
# If you use the same .cnf file for MySQL and MariaDB,
|
||||
# you can put MariaDB-only options here
|
||||
[mariadb]
|
||||
|
||||
## - innodb_purge_threads
|
||||
## -
|
||||
## - Number of background threads dedicated to InnoDB purge operations. The range
|
||||
## - is 1 to 32. At least one background thread is always used from MariaDB 10.0.
|
||||
## -
|
||||
## - The default has been increased from 1 to 4 in MariaDB 10.2.2. Setting to a
|
||||
## - value greater than 1 creates that many separate purge threads. This can improve
|
||||
## - efficiency in some cases, such as when performing DML operations on many tables.
|
||||
## - In MariaDB 5.5, the options are 0 and 1. If set to 0, the default, purging is
|
||||
## - done with the primary thread. If set to 1, purging is done on a separate thread,
|
||||
## - which could reduce contention. See also innodb_purge_batch_size.
|
||||
## -
|
||||
## - Default Value:
|
||||
## -
|
||||
## - 4 (>= MariaDB 10.2.2)
|
||||
## - 1 (>=MariaDB 10.0 to <= MariaDB 10.2.1)
|
||||
#innodb_purge_threads = 4
|
||||
|
||||
|
||||
## -------------
|
||||
## - 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
|
||||
## -
|
||||
#query_cache_type = 1
|
||||
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
|
||||
## -
|
||||
## - But present at MariaDB
|
||||
## -
|
||||
#query-cache-limit = 4M
|
||||
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
|
||||
## -
|
||||
#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 1Mbyte, d. h. der Abfrage-Cache ist vorgabeseitig deaktiviert.
|
||||
## -
|
||||
## -
|
||||
## - Removed since MySQL Version 8.0.3
|
||||
## -
|
||||
## - But present at MariaDB
|
||||
## -
|
||||
query_cache_size = 128M
|
||||
|
||||
## - query cache
|
||||
## -------------
|
||||
|
||||
# This group is only read by MariaDB-10.3 servers.
|
||||
# If you use the same .cnf file for MariaDB of different versions,
|
||||
# use this group for options that older servers don't understand
|
||||
[mariadb-10.3]
|
||||
|
||||
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
max-allowed-packet = 32M
|
||||
|
||||
Reference in New Issue
Block a user