diff --git a/templates/default/my.cnf.erb b/templates/default/my.cnf.erb index b978d32d1160c4cc12dcf0fbf1a0d3471042eac2..96670d267e3bbe8d144978d98ca1d93e3be54a2e 100644 --- a/templates/default/my.cnf.erb +++ b/templates/default/my.cnf.erb @@ -1,24 +1,53 @@ [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