Skip to content

Instantly share code, notes, and snippets.

@wilful
Created April 1, 2018 21:20
Show Gist options
  • Save wilful/97d00d59cf67cca395eff85d2d8d44b2 to your computer and use it in GitHub Desktop.
Save wilful/97d00d59cf67cca395eff85d2d8d44b2 to your computer and use it in GitHub Desktop.
[mysqld]
tmpdir = /var/tmp/mysql
skip-name-resolve
tmp_table_size=256M
max_heap_table_size = 256M
join_buffer_size = 16M
sort_buffer_size = 16M
slow_query_log
log_error
query_cache_size = 1024M
query_cache_limit = 32M
#innodb_log_file_size = 64M
innodb_buffer_pool_size = 1G
innodb_file_io_threads = 4
innodb_thread_concurrency = 4
innodb_log_buffer_size = 8M
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 120
innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
read_buffer_size = 2M
read_rnd_buffer_size = 16M
optimizer_search_depth = 0
join_buffer_size = 16M
sort_buffer_size = 16M
default-storage-engine = INNODB
thread_stack = 192K
transaction-isolation = READ-COMMITTED
key_buffer_size = 8M
bulk_insert_buffer_size = 64M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment