install_mysql.sh: change some default values (my.cnf).
This commit is contained in:
parent
15c516ee95
commit
596fc04ae3
@ -3153,6 +3153,8 @@ if ! $UPDATE_MYSQL || $_new_cnf_needed ; then
|
|||||||
port = $MYSQL_PORT
|
port = $MYSQL_PORT
|
||||||
socket = $MYSQL_UNIX_SOCKET
|
socket = $MYSQL_UNIX_SOCKET
|
||||||
|
|
||||||
|
default-character-set = utf8mb4
|
||||||
|
|
||||||
# Here follows entries for some specific programs
|
# Here follows entries for some specific programs
|
||||||
# The following values assume you have at least 32M ram
|
# 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
|
## - -DDEFAULT_COLLATION=latin1_german1_ci
|
||||||
## -
|
## -
|
||||||
#character-set-server = utf8
|
#character-set-server = utf8
|
||||||
|
character-set-server = utf8mb4
|
||||||
|
|
||||||
## - collation-server
|
## - 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 = utf8_general_ci
|
||||||
|
collation-server = utf8mb4_general_ci
|
||||||
|
|
||||||
" >> ${logdir}/main.log
|
" >> ${logdir}/main.log
|
||||||
|
|
||||||
@ -4172,6 +4176,18 @@ query_cache_size = 1024M
|
|||||||
[mariadb-10.3]
|
[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
|
## - angepasste Einstellungen
|
||||||
## ------------------------------------------
|
## ------------------------------------------
|
||||||
|
|
||||||
@ -4179,6 +4195,7 @@ query_cache_size = 1024M
|
|||||||
[mysqldump]
|
[mysqldump]
|
||||||
quick
|
quick
|
||||||
max-allowed-packet = 32M
|
max-allowed-packet = 32M
|
||||||
|
default-character-set = utf8mb4
|
||||||
|
|
||||||
[mysql]
|
[mysql]
|
||||||
no-auto-rehash
|
no-auto-rehash
|
||||||
@ -4270,6 +4287,8 @@ EOF" >> ${logdir}/main.log
|
|||||||
port = $MYSQL_PORT
|
port = $MYSQL_PORT
|
||||||
socket = $MYSQL_UNIX_SOCKET
|
socket = $MYSQL_UNIX_SOCKET
|
||||||
|
|
||||||
|
default-character-set = utf8mb4
|
||||||
|
|
||||||
# Here follows entries for some specific programs
|
# Here follows entries for some specific programs
|
||||||
# The following values assume you have at least 32M ram
|
# The following values assume you have at least 32M ram
|
||||||
|
|
||||||
@ -4327,11 +4346,13 @@ EOF
|
|||||||
## - -DDEFAULT_COLLATION=latin1_german1_ci
|
## - -DDEFAULT_COLLATION=latin1_german1_ci
|
||||||
## -
|
## -
|
||||||
#character-set-server = utf8
|
#character-set-server = utf8
|
||||||
|
character-set-server = utf8mb4
|
||||||
|
|
||||||
## - collation-server
|
## - 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 = utf8_general_ci
|
||||||
|
collation-server = utf8mb4_general_ci
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
if [[ "$MYSQL_MAJOR_VERSION" -gt 8 ]] \
|
if [[ "$MYSQL_MAJOR_VERSION" -gt 8 ]] \
|
||||||
@ -5293,10 +5314,22 @@ query_cache_size = 128M
|
|||||||
[mariadb-10.3]
|
[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]
|
[mysqldump]
|
||||||
quick
|
quick
|
||||||
max-allowed-packet = 32M
|
max-allowed-packet = 32M
|
||||||
|
default-character-set = utf8mb4
|
||||||
|
|
||||||
[mysql]
|
[mysql]
|
||||||
no-auto-rehash
|
no-auto-rehash
|
||||||
|
Loading…
Reference in New Issue
Block a user