Compare commits
17 Commits
ec4e0cf905
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 6972c7061d | |||
| 3eded8ede4 | |||
| e16bbaa7f6 | |||
| f7a2aa412c | |||
| b78f128cbe | |||
| 58fb07c6cc | |||
| 30433b7773 | |||
| 9460891d1c | |||
| bff3c24c90 | |||
| 8ef9527036 | |||
| 617bbfa3f2 | |||
| d4ec096c0d | |||
| 3b1a7ccf4e | |||
| 6522234352 | |||
| 2eede9f6a0 | |||
| f3bec24fa3 | |||
| 6527d9fa11 |
@@ -1,5 +1,5 @@
|
||||
/var/log/mysql/mysql.log
|
||||
/var/log/mysql/mysql.err
|
||||
/var/log/mysql/mysql-err.log
|
||||
/var/log/mysql/slow_query.log
|
||||
{
|
||||
daily
|
||||
|
||||
@@ -15,22 +15,23 @@
|
||||
|
||||
# The following options will be passed to all MySQL clients
|
||||
[client]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
port = 3306
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
|
||||
# Here follows entries for some specific programs
|
||||
# The following values assume you have at least 32M ram
|
||||
|
||||
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
|
||||
[mysqld_safe]
|
||||
socket = /tmp/mysql.sock
|
||||
nice = 0
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
nice = 0
|
||||
|
||||
|
||||
# The MySQL server
|
||||
[mysqld]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
port = 3306
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
#datadir = /data/mysql
|
||||
|
||||
## - skip_external_locking
|
||||
## -
|
||||
@@ -498,7 +499,7 @@ thread_stack = 262144
|
||||
## - name, MySQL uses host_name.err. If the file name has no extension,
|
||||
## - the server adds an extension of .err.
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## - ft_min_word_len
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
# The following options will be passed to all MySQL clients
|
||||
[client]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
|
||||
# Here follows entries for some specific programs
|
||||
# The following values assume you have at least 32M ram
|
||||
|
||||
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
|
||||
[mysqld_safe]
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
nice = 0
|
||||
|
||||
open-files-limit = 1048576
|
||||
@@ -33,7 +33,8 @@ innodb-open-files = 1048576
|
||||
# The MySQL server
|
||||
[mysqld]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
#datadir = /data/mysql
|
||||
#autocommit = 0
|
||||
|
||||
|
||||
@@ -629,7 +630,7 @@ thread-stack = 262144
|
||||
## - name, MySQL uses host_name.err. If the file name has no extension,
|
||||
## - the server adds an extension of .err.
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## - Query Log
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
# The following options will be passed to all MySQL clients
|
||||
[client]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
|
||||
# Here follows entries for some specific programs
|
||||
# The following values assume you have at least 32M ram
|
||||
|
||||
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
|
||||
[mysqld_safe]
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
nice = 0
|
||||
|
||||
open-files-limit = 1048576
|
||||
@@ -33,7 +33,8 @@ innodb-open-files = 1048576
|
||||
# The MySQL server
|
||||
[mysqld]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
#datadir = /data/mysql
|
||||
|
||||
|
||||
## - character-set-server
|
||||
@@ -628,7 +629,7 @@ thread-stack = 262144
|
||||
## - name, MySQL uses host_name.err. If the file name has no extension,
|
||||
## - the server adds an extension of .err.
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## - Query Log
|
||||
|
||||
1239
Example/my.cnf.HUGE.MariaDB-10.11
Normal file
1239
Example/my.cnf.HUGE.MariaDB-10.11
Normal file
File diff suppressed because it is too large
Load Diff
@@ -16,14 +16,14 @@
|
||||
# The following options will be passed to all MySQL clients
|
||||
[client]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
|
||||
# Here follows entries for some specific programs
|
||||
# The following values assume you have at least 32M ram
|
||||
|
||||
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
|
||||
[mysqld_safe]
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
nice = 0
|
||||
|
||||
open-files-limit = 1048576
|
||||
@@ -33,7 +33,8 @@ innodb-open-files = 1048576
|
||||
# The MySQL server
|
||||
[mysqld]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
#datadir = /data/mysql
|
||||
|
||||
|
||||
## - character-set-server
|
||||
@@ -424,6 +425,17 @@ innodb_log_buffer_size = 256M
|
||||
#innodb-flush-log-at-trx-commit = 1
|
||||
#innodb-flush-log-at-trx-commit = 2
|
||||
|
||||
## - innodb_ft_cache_size
|
||||
## -
|
||||
## - InnoDB Fulltext search cache size in bytes.
|
||||
## -
|
||||
## - Cache size available for a parsed document while creating an
|
||||
## - InnoDB FULLTEXT index.
|
||||
## -
|
||||
## - Deafult: 8000000 # ~ 7,6 MB
|
||||
## -
|
||||
innodb_ft_cache_size = 24M
|
||||
|
||||
## - innodb_lock_wait_timeout
|
||||
## -
|
||||
## - The length of time in seconds an InnoDB transaction waits for a row
|
||||
@@ -597,7 +609,7 @@ thread-stack = 262144
|
||||
## - name, MySQL uses host_name.err. If the file name has no extension,
|
||||
## - the server adds an extension of .err.
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## - Query Log
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
# The following options will be passed to all MySQL clients
|
||||
[client]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
|
||||
# Here follows entries for some specific programs
|
||||
# The following values assume you have at least 32M ram
|
||||
|
||||
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
|
||||
[mysqld_safe]
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
nice = 0
|
||||
|
||||
open-files-limit = 1048576
|
||||
@@ -33,7 +33,8 @@ innodb-open-files = 1048576
|
||||
# The MySQL server
|
||||
[mysqld]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
#datadir = /data/mysql
|
||||
|
||||
|
||||
## - character-set-server
|
||||
@@ -468,6 +469,17 @@ innodb_log_buffer_size = 256M
|
||||
#innodb-flush-log-at-trx-commit = 1
|
||||
#innodb-flush-log-at-trx-commit = 2
|
||||
|
||||
## - innodb_ft_cache_size
|
||||
## -
|
||||
## - InnoDB Fulltext search cache size in bytes.
|
||||
## -
|
||||
## - Cache size available for a parsed document while creating an
|
||||
## - InnoDB FULLTEXT index.
|
||||
## -
|
||||
## - Deafult: 8000000 # ~ 7,6 MB
|
||||
## -
|
||||
innodb_ft_cache_size = 24M
|
||||
|
||||
## - innodb_lock_wait_timeout
|
||||
## -
|
||||
## - The length of time in seconds an InnoDB transaction waits for a row
|
||||
@@ -641,7 +653,7 @@ thread-stack = 262144
|
||||
## - name, MySQL uses host_name.err. If the file name has no extension,
|
||||
## - the server adds an extension of .err.
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## - Query Log
|
||||
@@ -876,6 +888,25 @@ max_heap_table_size = 2048M
|
||||
tmp_table_size = 2048M
|
||||
|
||||
|
||||
## - optimizer_switch
|
||||
## -
|
||||
## - see:
|
||||
## - https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_optimizer_switch
|
||||
## - https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_optimizer_switch
|
||||
## -
|
||||
## - The optimizer_switch system variable enables control over optimizer
|
||||
## - behavior. The value of this variable is a set of flags, each of which
|
||||
## - has a value of on or off to indicate whether the corresponding optimizer
|
||||
## - behavior is enabled or disabled. This variable has global and session
|
||||
## - values and can be changed at runtime. The global default can be set at
|
||||
## - server startup.
|
||||
## -
|
||||
## - To see the current set of optimizer flags, select the variable value:
|
||||
## -
|
||||
## - mysql> SELECT @@optimizer_switch\G
|
||||
## -
|
||||
#optimizer_switch = ''
|
||||
|
||||
## - angepasste Einstellungen
|
||||
## ------------------------------------------
|
||||
|
||||
@@ -983,6 +1014,44 @@ query_cache_size = 1024M
|
||||
## -------------
|
||||
|
||||
|
||||
## - optimizer_switch
|
||||
## -
|
||||
## - see:
|
||||
## - https://mariadb.com/kb/en/server-system-variables/#optimizer_switch
|
||||
## - https://mariadb.com/kb/en/optimizer-switch
|
||||
## -
|
||||
## - Description: A series of flags for controlling the query optimizer.
|
||||
## - See 'https://mariadb.com/kb/en/optimizer-switch/' for defaults, and
|
||||
## - a comparison to MySQL.
|
||||
## -
|
||||
## - To see the current set of optimizer flags, select the variable value:
|
||||
## -
|
||||
## - mysql> SELECT @@optimizer_switch\G
|
||||
## -
|
||||
optimizer_switch = 'rowid_filter=off'
|
||||
|
||||
|
||||
## - optimizer_use_condition_selectivity
|
||||
## -
|
||||
## - Description: Controls which statistics can be used by the optimizer when
|
||||
## - looking for the best query execution plan.
|
||||
## -
|
||||
## - 1 Use selectivity of predicates as in MariaDB 5.5.
|
||||
## -
|
||||
## - 2 Use selectivity of all range predicates supported by indexes.
|
||||
## -
|
||||
## - 3 Use selectivity of all range predicates estimated without histogram.
|
||||
## -
|
||||
## - 4 Use selectivity of all range predicates estimated with histogram.
|
||||
## -
|
||||
## - 5 Additionally use selectivity of certain non-range predicates calculated
|
||||
## - on record sample.
|
||||
## -
|
||||
## - Default Value: 4 (>= MariaDB 10.4.1), 1 (<= MariaDB 10.4.0)
|
||||
## -
|
||||
optimizer_use_condition_selectivity = 1
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
1234
Example/my.cnf.MariaDB-10.11
Normal file
1234
Example/my.cnf.MariaDB-10.11
Normal file
File diff suppressed because it is too large
Load Diff
1123
Example/my.cnf.MariaDB-10.5
Normal file
1123
Example/my.cnf.MariaDB-10.5
Normal file
File diff suppressed because it is too large
Load Diff
1241
Example/my.cnf.MariaDB.postfix
Normal file
1241
Example/my.cnf.MariaDB.postfix
Normal file
File diff suppressed because it is too large
Load Diff
@@ -538,7 +538,7 @@ thread-stack = 262144
|
||||
## - the server adds an extension of .err.
|
||||
## -
|
||||
#log-error = /var/log/mysql/error.log
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## - ft_min_word_len
|
||||
|
||||
1244
Example/my.cnf.ND.MariaDB-10.11
Normal file
1244
Example/my.cnf.ND.MariaDB-10.11
Normal file
File diff suppressed because it is too large
Load Diff
1239
Example/my.cnf.VERY-HUGE.MariaDB-10.11
Normal file
1239
Example/my.cnf.VERY-HUGE.MariaDB-10.11
Normal file
File diff suppressed because it is too large
Load Diff
@@ -16,14 +16,14 @@
|
||||
# The following options will be passed to all MySQL clients
|
||||
[client]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
|
||||
# Here follows entries for some specific programs
|
||||
# The following values assume you have at least 32M ram
|
||||
|
||||
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
|
||||
[mysqld_safe]
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
nice = 0
|
||||
|
||||
open-files-limit = 1048576
|
||||
@@ -33,7 +33,8 @@ innodb-open-files = 1048576
|
||||
# The MySQL server
|
||||
[mysqld]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
#datadir = /data/mysql
|
||||
|
||||
|
||||
## - character-set-server
|
||||
@@ -598,7 +599,7 @@ thread-stack = 262144
|
||||
## - name, MySQL uses host_name.err. If the file name has no extension,
|
||||
## - the server adds an extension of .err.
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## - Query Log
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
# The following options will be passed to all MySQL clients
|
||||
[client]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
|
||||
# Here follows entries for some specific programs
|
||||
# The following values assume you have at least 32M ram
|
||||
|
||||
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
|
||||
[mysqld_safe]
|
||||
socket = /tmp/mysql.sock
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
nice = 0
|
||||
|
||||
open-files-limit = 1048576
|
||||
@@ -33,7 +33,23 @@ innodb-open-files = 1048576
|
||||
# The MySQL server
|
||||
[mysqld]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
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
|
||||
@@ -51,11 +67,13 @@ socket = /tmp/mysql.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 +175,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 +208,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,
|
||||
@@ -345,7 +387,7 @@ innodb-open-files = 1048576
|
||||
## - InnoDB stores the data and indexes for each newly created table in a
|
||||
## - separate .ibd file, rather than in the system tablespace.
|
||||
## -
|
||||
innodb-file-per-table = 1
|
||||
innodb-file-per-table = On
|
||||
|
||||
## - innodb_data_home_dir
|
||||
## -
|
||||
@@ -439,7 +481,8 @@ innodb_log_file_size = 750M
|
||||
## -
|
||||
#innodb-log-buffer-size = 8M
|
||||
#innodb-log-buffer-size = 32M
|
||||
innodb_log_buffer_size = 256M
|
||||
#innodb_log_buffer_size = 256M
|
||||
innodb_log_buffer_size = 512M
|
||||
|
||||
## - innodb_flush_log_at_trx_commit
|
||||
## -
|
||||
@@ -468,6 +511,20 @@ 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
|
||||
## -
|
||||
## - InnoDB Fulltext search cache size in bytes.
|
||||
## -
|
||||
## - Cache size available for a parsed document while creating an
|
||||
## - InnoDB FULLTEXT index.
|
||||
## -
|
||||
## - Deafult: 8000000 # ~ 7,6 MB
|
||||
## -
|
||||
innodb_ft_cache_size = 24M
|
||||
|
||||
|
||||
## - innodb_lock_wait_timeout
|
||||
## -
|
||||
@@ -491,6 +548,8 @@ innodb_log_buffer_size = 256M
|
||||
## - Default: 2097152 (2M)
|
||||
## -
|
||||
#sort-buffer-size = 2M
|
||||
#sort-buffer-size = 24MM
|
||||
#sort-buffer-size = 32M
|
||||
sort-buffer-size = 64M
|
||||
|
||||
|
||||
@@ -517,6 +576,8 @@ key-buffer-size = 512M
|
||||
## - Default: 131072 (128K)
|
||||
## -
|
||||
#read-buffer-size = 2M
|
||||
#read-buffer-size = 16M
|
||||
#read-buffer-size = 24M
|
||||
read-buffer-size = 32M
|
||||
|
||||
## - read_rnd_buffer_size
|
||||
@@ -537,9 +598,12 @@ read-rnd-buffer-size = 32M
|
||||
## - ALTER TABLE.
|
||||
## -
|
||||
## - Default: 8388608 (8M)
|
||||
## - Default MariaDB: 134217728 (128M)
|
||||
## -
|
||||
#myisam-sort-buffer-size = 64M
|
||||
myisam-sort-buffer-size = 256M
|
||||
#myisam-sort-buffer-size = 384M
|
||||
#myisam-sort-buffer-size = 512M
|
||||
|
||||
|
||||
## - max_allowed_packet
|
||||
@@ -551,7 +615,7 @@ myisam-sort-buffer-size = 256M
|
||||
## -
|
||||
#max-allowed-packet = 4M
|
||||
#max-allowed-packet = 32M
|
||||
max-allowed-packet = 64M
|
||||
max-allowed-packet = 512M
|
||||
|
||||
|
||||
## - table_open_cache
|
||||
@@ -565,6 +629,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 = 8192
|
||||
|
||||
@@ -574,9 +640,13 @@ 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 = 5120
|
||||
#table-definition-cache = 1936
|
||||
#table-definition-cache = 3472
|
||||
#table-definition-cache = 449
|
||||
table_definition_cache = 5120
|
||||
|
||||
## - max_connect_errors
|
||||
## -
|
||||
@@ -584,19 +654,6 @@ table_open_cache = 8192
|
||||
## -
|
||||
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
|
||||
@@ -604,9 +661,10 @@ 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 = 32
|
||||
thread_cache_size = 300
|
||||
|
||||
## - thread_stack
|
||||
## -
|
||||
@@ -618,9 +676,11 @@ 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)
|
||||
## -
|
||||
thread-stack = 262144
|
||||
## - Default: 262144 (256K)
|
||||
## - Default MariaDB: 299008 (292K)
|
||||
## -
|
||||
#thread-stack = 584K
|
||||
|
||||
|
||||
## - Unbenutze Datenbank Engines deaktivieren
|
||||
@@ -633,24 +693,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 = InnoDB
|
||||
|
||||
## - ft_min_word_len
|
||||
## -
|
||||
@@ -683,6 +732,84 @@ log-error = /var/log/mysql/mysql.err
|
||||
#ft-stopword-file = /usr/local/mysql/stopwords_utf8_iso8859-15.txt
|
||||
|
||||
|
||||
## --------------
|
||||
## - log files
|
||||
|
||||
## - Query Log
|
||||
## -
|
||||
## - 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
|
||||
## -
|
||||
## - 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.
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## --------------
|
||||
## - slow queries
|
||||
|
||||
## - slow_query_log
|
||||
## -
|
||||
## - Gibt an, ob das Logging für langsame Abfragen eingeschaltet (1 oder ON)
|
||||
## - bzw ausgeschaltet (0 oder OFF) ist.
|
||||
## -
|
||||
## - Vorgabewert ist 0 oder OFF
|
||||
## -
|
||||
slow-query-log = On
|
||||
|
||||
|
||||
## - long_query_time
|
||||
## -
|
||||
## - Wenn eine Abfrage länger dauert als durch diese Variable (in Sekunden) angegeben,
|
||||
## - erhöht der Server die Statusvariable Slow_queries entsprechend. Wird die Option
|
||||
## - --log-slow-queries verwendet, wird die Abfrage in der Logdatei für langsame Abfragen
|
||||
## - protokolliert. Dieser Wert wird als Echtzeit (nicht als Prozessorzeit) gemessen, d. h.
|
||||
## - eine Abfrage, die bei einem System mit geringer Belastung den Schwellwert
|
||||
## - unterschreitet, kann bei einem stark belasteten System bereits darüber liegen.
|
||||
## - Der Mindestwert ist 1.
|
||||
## -
|
||||
## - Vorgabewert ist 10
|
||||
## -
|
||||
#long-query-time = 1
|
||||
long-query-time = 5
|
||||
|
||||
|
||||
## - slow_query_log_file
|
||||
## -
|
||||
## - Name der Logdatei, in die langsame Abfragen gespeichert werden.
|
||||
## -
|
||||
## - Vorgabewert ist <host-name>-slow.log
|
||||
## -
|
||||
slow-query-log-file = /var/log/mysql/mysql-slow.log
|
||||
|
||||
|
||||
## - log-queries-not-using-indexes
|
||||
## -
|
||||
## - Gibt an, ob Abfragen, die keine Indizes benutzen in der Logdatei
|
||||
## - für langsame Abfragen mitgespeichert werden sollen.
|
||||
## -
|
||||
## - Vorgabewert ist 0
|
||||
## -
|
||||
#log-queries-not-using-indexes = 1
|
||||
log-queries-not-using-indexes = 0
|
||||
|
||||
## - slow queries
|
||||
## --------------
|
||||
|
||||
|
||||
## -------------
|
||||
## - query cache
|
||||
@@ -700,9 +827,13 @@ 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
|
||||
query_cache_type = 0
|
||||
|
||||
|
||||
## - query_cache_limit
|
||||
@@ -710,8 +841,8 @@ log-error = /var/log/mysql/mysql.err
|
||||
## - Gibt die maximale Größe einzelner Abfrageergebnisse an, die im
|
||||
## - Cache gespeichert werden können.
|
||||
## -
|
||||
## - Vorgeabewert ist 1Mbyte
|
||||
## -
|
||||
## - Vorgeabewert ist 1Mbyte
|
||||
## -
|
||||
## - Removed since MySQL Version 8.0.3
|
||||
## -
|
||||
@@ -736,11 +867,13 @@ log-error = /var/log/mysql/mysql.err
|
||||
## -
|
||||
## - 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
|
||||
@@ -769,57 +902,6 @@ log-error = /var/log/mysql/mysql.err
|
||||
## - query cache
|
||||
## -------------
|
||||
|
||||
|
||||
## --------------
|
||||
## - slow queries
|
||||
|
||||
## - slow_query_log
|
||||
## -
|
||||
## - Gibt an, ob das Logging für langsame Abfragen eingeschaltet (1 oder ON)
|
||||
## - bzw ausgeschaltet (0 oder OFF) ist.
|
||||
## -
|
||||
## - Vorgabewert ist 0 oder OFF
|
||||
## -
|
||||
slow-query-log = 1
|
||||
|
||||
|
||||
## - long_query_time
|
||||
## -
|
||||
## - Wenn eine Abfrage länger dauert als durch diese Variable (in Sekunden) angegeben,
|
||||
## - erhöht der Server die Statusvariable Slow_queries entsprechend. Wird die Option
|
||||
## - --log-slow-queries verwendet, wird die Abfrage in der Logdatei für langsame Abfragen
|
||||
## - protokolliert. Dieser Wert wird als Echtzeit (nicht als Prozessorzeit) gemessen, d. h.
|
||||
## - eine Abfrage, die bei einem System mit geringer Belastung den Schwellwert
|
||||
## - unterschreitet, kann bei einem stark belasteten System bereits darüber liegen.
|
||||
## - Der Mindestwert ist 1.
|
||||
## -
|
||||
## - Vorgabewert ist 10
|
||||
## -
|
||||
long-query-time = 1
|
||||
|
||||
|
||||
## - slow_query_log_file
|
||||
## -
|
||||
## - Name der Logdatei, in die langsame Abfragen gespeichert werden.
|
||||
## -
|
||||
## - Vorgabewert ist <host-name>-slow.log
|
||||
## -
|
||||
slow-query-log-file = /var/log/mysql/slow_query.log
|
||||
|
||||
|
||||
## - log-queries-not-using-indexes
|
||||
## -
|
||||
## - Gibt an, ob Abfragen, die keine Indizes benutzen in der Logdatei
|
||||
## - für langsame Abfragen mitgespeichert werden sollen.
|
||||
## -
|
||||
## - Vorgabewert ist 0
|
||||
## -
|
||||
#log-queries-not-using-indexes = 1
|
||||
log-queries-not-using-indexes = 0
|
||||
|
||||
## - slow queries
|
||||
## --------------
|
||||
|
||||
## - join_buffer_size
|
||||
## -
|
||||
## - Die Größe des Puffers, der für Joins benutzt wird, die keine Indizes verwenden
|
||||
@@ -837,9 +919,9 @@ log-queries-not-using-indexes = 0
|
||||
## - Vorgabewert ist 128K
|
||||
## -
|
||||
#join-buffer-size = 384K
|
||||
#join_buffer_size = 768K
|
||||
join_buffer_size = 768K
|
||||
#join_buffer_size = 1024K
|
||||
join_buffer_size = 1536K
|
||||
#join_buffer_size = 1536K
|
||||
|
||||
|
||||
|
||||
@@ -878,6 +960,26 @@ max_heap_table_size = 2048M
|
||||
tmp_table_size = 2048M
|
||||
|
||||
|
||||
## - optimizer_switch
|
||||
## -
|
||||
## - see:
|
||||
## - https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_optimizer_switch
|
||||
## - https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_optimizer_switch
|
||||
## -
|
||||
## - The optimizer_switch system variable enables control over optimizer
|
||||
## - behavior. The value of this variable is a set of flags, each of which
|
||||
## - has a value of on or off to indicate whether the corresponding optimizer
|
||||
## - behavior is enabled or disabled. This variable has global and session
|
||||
## - values and can be changed at runtime. The global default can be set at
|
||||
## - server startup.
|
||||
## -
|
||||
## - To see the current set of optimizer flags, select the variable value:
|
||||
## -
|
||||
## - mysql> SELECT @@optimizer_switch\G
|
||||
## -
|
||||
#optimizer_switch = ''
|
||||
|
||||
|
||||
## - angepasste Einstellungen
|
||||
## ------------------------------------------
|
||||
|
||||
@@ -923,7 +1025,7 @@ tmp_table_size = 2048M
|
||||
## -
|
||||
## - But present at MariaDB
|
||||
## -
|
||||
query_cache_type = 1
|
||||
query_cache_type = 0
|
||||
|
||||
|
||||
## - query_cache_limit
|
||||
@@ -977,14 +1079,54 @@ query-cache-min-res-unit = 8K
|
||||
## -
|
||||
## - 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
|
||||
#query_cache_size = 1024M
|
||||
|
||||
## - query cache
|
||||
## -------------
|
||||
|
||||
|
||||
## - optimizer_switch
|
||||
## -
|
||||
## - see:
|
||||
## - https://mariadb.com/kb/en/server-system-variables/#optimizer_switch
|
||||
## - https://mariadb.com/kb/en/optimizer-switch
|
||||
## -
|
||||
## - Description: A series of flags for controlling the query optimizer.
|
||||
## - See 'https://mariadb.com/kb/en/optimizer-switch/' for defaults, and
|
||||
## - a comparison to MySQL.
|
||||
## -
|
||||
## - To see the current set of optimizer flags, select the variable value:
|
||||
## -
|
||||
## - mysql> SELECT @@optimizer_switch\G
|
||||
## -
|
||||
optimizer_switch = 'rowid_filter=off'
|
||||
|
||||
|
||||
## - optimizer_use_condition_selectivity
|
||||
## -
|
||||
## - Description: Controls which statistics can be used by the optimizer when
|
||||
## - looking for the best query execution plan.
|
||||
## -
|
||||
## - 1 Use selectivity of predicates as in MariaDB 5.5.
|
||||
## -
|
||||
## - 2 Use selectivity of all range predicates supported by indexes.
|
||||
## -
|
||||
## - 3 Use selectivity of all range predicates estimated without histogram.
|
||||
## -
|
||||
## - 4 Use selectivity of all range predicates estimated with histogram.
|
||||
## -
|
||||
## - 5 Additionally use selectivity of certain non-range predicates calculated
|
||||
## - on record sample.
|
||||
## -
|
||||
## - Default Value: 4 (>= MariaDB 10.4.1), 1 (<= MariaDB 10.4.0)
|
||||
## -
|
||||
optimizer_use_condition_selectivity = 1
|
||||
|
||||
# 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
|
||||
@@ -994,7 +1136,7 @@ query_cache_size = 1024M
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
max-allowed-packet = 32M
|
||||
max-allowed-packet = 512
|
||||
|
||||
[mysql]
|
||||
no-auto-rehash
|
||||
|
||||
@@ -593,7 +593,7 @@ thread-stack = 262144
|
||||
## - name, MySQL uses host_name.err. If the file name has no extension,
|
||||
## - the server adds an extension of .err.
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## - Query Log
|
||||
|
||||
1237
Example/my.cnf.WF-web0.MariaDB-10.11
Normal file
1237
Example/my.cnf.WF-web0.MariaDB-10.11
Normal file
File diff suppressed because it is too large
Load Diff
@@ -188,7 +188,7 @@ explicit_defaults_for_timestamp = true
|
||||
|
||||
## - Loggt Startup Messages und Fehler
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
## - Query Log
|
||||
## -
|
||||
|
||||
@@ -574,7 +574,7 @@ thread-stack = 262144
|
||||
## - name, MySQL uses host_name.err. If the file name has no extension,
|
||||
## - the server adds an extension of .err.
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## - Query Log
|
||||
|
||||
@@ -589,7 +589,7 @@ thread-stack = 262144
|
||||
## - name, MySQL uses host_name.err. If the file name has no extension,
|
||||
## - the server adds an extension of .err.
|
||||
## -
|
||||
log-error = /var/log/mysql/mysql.err
|
||||
log-error = /var/log/mysql/mysql-err.log
|
||||
|
||||
|
||||
## - Query Log
|
||||
|
||||
50
README.install-openssl-1.1.1
Normal file
50
README.install-openssl-1.1.1
Normal file
@@ -0,0 +1,50 @@
|
||||
# ----------
|
||||
# Install openssl version 1.x
|
||||
# ----------
|
||||
|
||||
|
||||
OPENSSL1_VERSION="1.1.1w"
|
||||
|
||||
_archive_file="openssl-${OPENSSL1_VERSION}.tgz"
|
||||
_download_url="https://www.openssl.org/source/openssl-${OPENSSL1_VERSION}.tar.gz"
|
||||
|
||||
_src_dir="/usr/local/src/openssl"
|
||||
_build_dir="${_src_dir}/openssl-${OPENSSL1_VERSION}"
|
||||
_install_dir="/usr/local/openssl-${OPENSSL1_VERSION}"
|
||||
|
||||
|
||||
# Create source directory
|
||||
#
|
||||
mkdir -p "$_src_dir"
|
||||
|
||||
# Get source '$_archive_file' ..
|
||||
#
|
||||
wget -O "${_src_dir}/$_archive_file" ${_download_url}
|
||||
|
||||
# Unpack archive '$_archive_file'..
|
||||
#
|
||||
cd "$_src_dir"
|
||||
gunzip < "${_archive_file}" | tar -xf -
|
||||
|
||||
|
||||
# Configure openssl
|
||||
#
|
||||
cd "$_build_dir"
|
||||
config_params="--prefix=${_install_dir} --openssldir=${_install_dir}"
|
||||
./config ${config_params}
|
||||
|
||||
|
||||
# Compile openssl
|
||||
#
|
||||
make
|
||||
|
||||
|
||||
# Install openssl
|
||||
#
|
||||
make install
|
||||
|
||||
|
||||
# Set symlink /usr/local/openssl -> /usr/local/openssl-${OPENSSL1_VERSION}
|
||||
#
|
||||
ln -s openssl-${OPENSSL1_VERSION} /usr/local/openssl-1.1.1
|
||||
|
||||
30
README.update-alternatives
Normal file
30
README.update-alternatives
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
|
||||
# list available targets
|
||||
#
|
||||
update-alternatives --list my.cnf
|
||||
|
||||
# show further information including current selection, best selection and priority, where
|
||||
# a higher value has priority (automatic selection)
|
||||
#
|
||||
update-alternatives --display my.cnf
|
||||
|
||||
|
||||
# To select a specific implementation, use the following command as root and then select
|
||||
# a number from the list:
|
||||
#
|
||||
# also useful to see the current selection
|
||||
#
|
||||
update-alternatives --config my.cnf
|
||||
|
||||
|
||||
# Return to automatic selection
|
||||
#
|
||||
update-alternatives --auto my.cnf
|
||||
|
||||
|
||||
# delete an alternative
|
||||
#
|
||||
# update-alternatives --remove my.cnf <Pfad>
|
||||
#
|
||||
update-alternatives --remove my.cnf /usr/local/mysql/etc/my.cnf
|
||||
@@ -833,6 +833,9 @@ if $INSTALL_SYSTEMD_SERVICE ; then
|
||||
MYSQL_SERVICE_FILE="mysqld.service"
|
||||
SYSTEMD_PID_DIR="$MYSQL_DATA_DIR"
|
||||
fi
|
||||
|
||||
SYSTEMD_ENV_FILE="/etc/systemd/system/${MYSQL_DISTRIBUTION,,}-${MYSQL_VERSION}.env"
|
||||
|
||||
else
|
||||
if $PARALLEL_INSTALLATION ; then
|
||||
MYSQL_SYSV_INIT_SCRIPT="${MYSQL_DISTRIBUTION,,}-${MYSQL_VERSION}.server"
|
||||
@@ -896,6 +899,7 @@ echo "Systemd Unterstützung.....: $SYSTEMD_EXISTS"
|
||||
if $INSTALL_SYSTEMD_SERVICE ; then
|
||||
echo "Starmethode...............: Systemd Service"
|
||||
echo "MySQL Service File........: $MYSQL_SERVICE_FILE"
|
||||
echo "MySQL Environment File....: $SYSTEMD_ENV_FILE"
|
||||
echo "Systemd pid directory.....: $SYSTEMD_PID_DIR"
|
||||
else
|
||||
echo "Starmethode...............: SysVinit Script"
|
||||
@@ -1018,6 +1022,7 @@ echo "## - Systemd Unterstützung.....: $SYSTEMD_EXISTS" >> ${logdir}/main.log
|
||||
if $INSTALL_SYSTEMD_SERVICE ; then
|
||||
echo "## - Starmethode...............: Systemd Service" >> ${logdir}/main.log
|
||||
echo "## - MySQL Service File........: $MYSQL_SERVICE_FILE" >> ${logdir}/main.log
|
||||
echo "## - MySQL Environment File....: $SYSTEMD_ENV_FILE" >> ${logdir}/main.log
|
||||
echo "## - Systemd pid directory.....: $SYSTEMD_PID_DIR" >> ${logdir}/main.log
|
||||
else
|
||||
echo "## - Starmethode...............: SysVinit Script" >> ${logdir}/main.log
|
||||
@@ -1068,6 +1073,7 @@ echo "SYMLINK_DATA_DIR=$SYMLINK_DATA_DIR" >> ${logdir}/main.log
|
||||
echo "SYSTEMD_EXISTS=$SYSTEMD_EXISTS" >> ${logdir}/main.log
|
||||
echo "INSTALL_SYSTEMD_SERVICE=$INSTALL_SYSTEMD_SERVICE" >> ${logdir}/main.log
|
||||
echo "MYSQL_SERVICE_FILE=$MYSQL_SERVICE_FILE" >> ${logdir}/main.log
|
||||
echo "SYSTEMD_ENV_FILE=$SYSTEMD_ENV_FILE"
|
||||
echo "SYSTEMD_PID_DIR=$SYSTEMD_PID_DIR" >> ${logdir}/main.log
|
||||
echo "MYSQL_SYSV_INIT_SCRIPT=$MYSQL_SYSV_INIT_SCRIPT" >> ${logdir}/main.log
|
||||
echo "VSERVER_GUEST=$VSERVER_GUEST" >> ${logdir}/main.log
|
||||
@@ -3657,9 +3663,12 @@ innodb_buffer_pool_size = 4G
|
||||
## -
|
||||
## - The size in bytes of each log file in a log group.
|
||||
## -
|
||||
## - Default: 5242880 (5M)
|
||||
## - Default:
|
||||
## - 50331648 (50M) (MySQL)
|
||||
## - 100663296 (96MB) (>= MariaDB 10.5)
|
||||
## - 50331648 (48MB) (<= MariaDB 10.4)
|
||||
## -
|
||||
## (Set .._log_file_size to 25 % of buffer pool size)
|
||||
## - (Set .._log_file_size to 25 % of buffer pool size)
|
||||
## -
|
||||
#innodb-log-file-size = 100M
|
||||
#innodb-log-file-size = 256M
|
||||
@@ -3670,7 +3679,7 @@ innodb_log_file_size = 512M
|
||||
## - The size in bytes of the buffer that InnoDB uses to write to the
|
||||
## - log files on disk.
|
||||
## -
|
||||
## - Default: 8388608 (8M)
|
||||
## - Default: 16777216 (16M)
|
||||
## -
|
||||
#innodb-log-buffer-size = 8M
|
||||
#innodb-log-buffer-size = 32M
|
||||
@@ -6043,25 +6052,32 @@ EOF
|
||||
error "Setting open_files_limit (LimitNOFILE) to $(ulimit -Hn) failed!"
|
||||
fi
|
||||
|
||||
SYSTEMD_ENV_FILE="/etc/systemd/system/${MYSQL_DISTRIBUTION,,}-${MYSQL_VERSION}.env"
|
||||
|
||||
echononl "Create environmet file fo systemd service.."
|
||||
echononl "Create environmet file '${SYSTEMD_ENV_FILE}' for systemd service.."
|
||||
echo "" >> ${logdir}/main.log
|
||||
echo "## - Create environmet file fo systemd service.." >> ${logdir}/main.log
|
||||
echo "## - Create environmet file '${SYSTEMD_ENV_FILE}' for systemd service.." >> ${logdir}/main.log
|
||||
echo "## -" >> ${logdir}/main.log
|
||||
echo "cat <<EOF > $SYSTEMD_ENV_FILE
|
||||
MYSQL_HOME=\"$MYSQL_INSTALL_DIR\"
|
||||
EOF
|
||||
" >> ${logdir}/main.log
|
||||
cat <<EOF > $SYSTEMD_ENV_FILE
|
||||
MYSQL_HOME="$MYSQL_INSTALL_DIR"
|
||||
EOF
|
||||
if [[ $? -eq 0 ]] ; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "Creating environmet file fo systemd service failed!"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/nno]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
|
||||
fi
|
||||
cat <<EOF > $SYSTEMD_ENV_FILE
|
||||
MYSQL_HOME="$MYSQL_INSTALL_DIR"
|
||||
EOF
|
||||
|
||||
echononl "Add/Replace 'EnvironmentFile' variable at service file .."
|
||||
echo "" >> ${logdir}/main.log
|
||||
@@ -7069,6 +7085,31 @@ else
|
||||
fi
|
||||
|
||||
|
||||
if $INSTALL_SYSTEMD_SERVICE ; then
|
||||
|
||||
echononl "Add 'NO_INIT=true' to systemd environmet file '$(basename ${SYSTEMD_ENV_FILE})'.."
|
||||
if $(grep -E -q "^\s*NO_INIT=\"?.+\"?" ${SYSTEMD_ENV_FILE} 2> /dev/null) ; then
|
||||
echo_skipped
|
||||
else
|
||||
echo "" >> ${logdir}/main.log
|
||||
echo "## - Add 'NO_INIT=true' to systemd environmet file '$(basename ${SYSTEMD_ENV_FILE})'.." >> ${logdir}/main.log
|
||||
echo "## -" >> ${logdir}/main.log
|
||||
echo "cat <<EOF >> $SYSTEMD_ENV_FILE
|
||||
NO_INIT=true
|
||||
EOF
|
||||
" >> ${logdir}/main.log
|
||||
cat <<EOF >> $SYSTEMD_ENV_FILE
|
||||
NO_INIT=true
|
||||
EOF
|
||||
if [[ $? -eq 0 ]] ; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "Adding NO_INIT=true' to systemd environmet file '$(basename ${SYSTEMD_ENV_FILE})' failed!"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi # if $INSTALL_SYSTEMD_SERVICE ; then
|
||||
|
||||
echo
|
||||
echononl "Reenable crontab for user root .."
|
||||
|
||||
7147
install_mysql_openssl_111.sh
Executable file
7147
install_mysql_openssl_111.sh
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user