Skip to content
Snippets Groups Projects
Commit d1bd6bc3 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Optimize the MySQL configuration

parent 13520f1b
No related branches found
No related tags found
No related merge requests found
[mysqld]
# * Fine Tuning
key_buffer = 16M
max_allowed_packet = 128M
thread_stack = 192K
thread_cache_size = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
# * Query Cache Configuration
query_cache_limit = 1M
query_cache_size = 16M
# disable the strict mode
sql-mode=""
key_buffer_size = 32M
max_allowed_packet = 16M
max_connections = 214
thread_cache_size = 200
query_cache_limit = 4M
query_cache_size = 128M
query_cache_type = 1
tmp_table_size = 128M
max_heap_table_size = 128M
table_definition_cache = 800
join_buffer_size = 4M
table_open_cache = 200
open_files_limit = 512
#myisam-recover = BACKUP
myisam_sort_buffer_size = 32M
myisam_recover_options = BACKUP
innodb_buffer_pool_size = 512M
innodb_flush_method = O_DIRECT
innodb_thread_concurrency = 0
innodb_read_io_threads = 64
innodb_write_io_threads = 64
log_warnings = 2
slave_net_timeout = 60
collation_server = utf8_unicode_ci
character_set_server = utf8
long_query_time = 3
slow_query_log = 1
slow_query_log_file = /var/log/mysql/log-slow-queries.log
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
max_allowed_packet = 64M
[isamchk]
key_buffer = 16M
\ No newline at end of file
key_buffer = 32M
[mysql]
default-character-set=utf8
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment