Skip to content

Instantly share code, notes, and snippets.

@putWorkDev
Last active May 24, 2016 01:09
Show Gist options
  • Select an option

  • Save putWorkDev/fcbc5096fe4a19626a93956502c3b162 to your computer and use it in GitHub Desktop.

Select an option

Save putWorkDev/fcbc5096fe4a19626a93956502c3b162 to your computer and use it in GitHub Desktop.
boost mysql
add in /etc/my.cnf:
----------------------------------------
key-buffer_size = 64M
sort_buffer_size = 32M
#
## thread buffers ##
#
sort_buffer_size = 5M
read_buffer_size = 5M
join_buffer_size = 32M
read_rnd_buffer_size = 8M
innodb_flush_log_at_trx_commit = 2
innodb_flush_method=O_DIRECT
innodb_additional_mem_pool_size = 8M
query_cache_size = 0
innodb_log_files_in_group = 2
innodb_log_file_size = 1900M
------
or
------
https://tools.percona.com/sign-in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment