install_mysql.sh: change some default values (my.cnf).

This commit is contained in:
Christoph 2021-10-04 01:00:59 +02:00
parent 15c516ee95
commit 596fc04ae3

View File

@ -3153,6 +3153,8 @@ if ! $UPDATE_MYSQL || $_new_cnf_needed ; then
port = $MYSQL_PORT
socket = $MYSQL_UNIX_SOCKET
default-character-set = utf8mb4
# Here follows entries for some specific programs
# The following values assume you have at least 32M ram
@ -3212,11 +3214,13 @@ pid-file = ${SYSTEMD_PID_DIR}/mysqld.pid
## - -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
" >> ${logdir}/main.log
@ -4172,6 +4176,18 @@ query_cache_size = 1024M
[mariadb-10.3]
[mariadb-10.4]
[mariadb-10.6]
## - innodb_read_only_compressed
## -
## - Make ROW_FORMAT=COMPRESSED tables read-only (ON by default)
## -
innodb_read_only_compressed = OFF
## - angepasste Einstellungen
## ------------------------------------------
@ -4179,6 +4195,7 @@ query_cache_size = 1024M
[mysqldump]
quick
max-allowed-packet = 32M
default-character-set = utf8mb4
[mysql]
no-auto-rehash
@ -4270,6 +4287,8 @@ EOF" >> ${logdir}/main.log
port = $MYSQL_PORT
socket = $MYSQL_UNIX_SOCKET
default-character-set = utf8mb4
# Here follows entries for some specific programs
# The following values assume you have at least 32M ram
@ -4327,11 +4346,13 @@ EOF
## - -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
EOF
if [[ "$MYSQL_MAJOR_VERSION" -gt 8 ]] \
@ -5293,10 +5314,22 @@ query_cache_size = 128M
[mariadb-10.3]
[mariadb-10.4]
[mariadb-10.6]
## - innodb_read_only_compressed
## -
## - Make ROW_FORMAT=COMPRESSED tables read-only (ON by default)
## -
innodb_read_only_compressed = OFF
[mysqldump]
quick
max-allowed-packet = 32M
default-character-set = utf8mb4
[mysql]
no-auto-rehash