Browse Source

update mysql settings

easyengine-v3
VirtuBox 2 years ago
parent
commit
f18d58d832
2 changed files with 12 additions and 10 deletions
  1. +6
    -5
      docs/files/etc/mysql/my.cnf
  2. +6
    -5
      etc/mysql/my.cnf

+ 6
- 5
docs/files/etc/mysql/my.cnf View File

@@ -3,7 +3,7 @@
# You can copy this file to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
@@ -37,10 +37,11 @@ tmpdir = /tmp
lc_messages_dir = /usr/share/mysql
lc_messages = en_US
skip-external-locking
performance_schema = ON
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
bind-address = ::ffff:127.0.0.1
#
# * Fine Tuning
#
@@ -71,9 +72,9 @@ read_rnd_buffer_size = 1M
#
# Cache only tiny result sets, so we can fit more in the query cache.
query_cache_limit = 128K
query_cache_size = 64M
query_cache_size = 0
# for more write intensive setups, set to DEMAND or OFF
#query_cache_type = DEMAND
query_cache_type = 0
#
# * Logging and Replication
#
@@ -89,7 +90,7 @@ query_cache_size = 64M
log_warnings = 2
#
# Enable the slow query log to see queries with especially long duration
#slow_query_log[={0|1}]
slow_query_log = 1
slow_query_log_file = /var/log/mysql/mariadb-slow.log
long_query_time = 10
#log_slow_rate_limit = 1000


+ 6
- 5
etc/mysql/my.cnf View File

@@ -3,7 +3,7 @@
# You can copy this file to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
@@ -37,10 +37,11 @@ tmpdir = /tmp
lc_messages_dir = /usr/share/mysql
lc_messages = en_US
skip-external-locking
performance_schema = ON
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
bind-address = ::ffff:127.0.0.1
#
# * Fine Tuning
#
@@ -71,9 +72,9 @@ read_rnd_buffer_size = 1M
#
# Cache only tiny result sets, so we can fit more in the query cache.
query_cache_limit = 128K
query_cache_size = 64M
query_cache_size = 0
# for more write intensive setups, set to DEMAND or OFF
#query_cache_type = DEMAND
query_cache_type = 0
#
# * Logging and Replication
#
@@ -89,7 +90,7 @@ query_cache_size = 64M
log_warnings = 2
#
# Enable the slow query log to see queries with especially long duration
#slow_query_log[={0|1}]
slow_query_log = 1
slow_query_log_file = /var/log/mysql/mariadb-slow.log
long_query_time = 10
#log_slow_rate_limit = 1000


Loading…
Cancel
Save