Skip to content

Instantly share code, notes, and snippets.

@hirochachacha
Created February 7, 2013 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirochachacha/4728945 to your computer and use it in GitHub Desktop.
Save hirochachacha/4728945 to your computer and use it in GitHub Desktop.
mysql
[mysqld]
# basic settings
port = 3306
socket=/var/lib/mysql/mysql.sock
skip-locking
default-storage-engine=InnoDB
default-time-zone=utc
user=mysql
character-set-server=utf8
basedir = /usr
datadir = /var/lib/mysql
#tmpdir = /var/tmp/mysql
core-file
# for replication
server-id = 1
log-bin=mysql-bin
# buffers
key_buffer = 384M
max_allowed_packet = 3M # 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
max_connections = 500
thread_concurrency = 8
# InnoDB configurations
#innodb_data_home_dir = /var/lib/mysql/
#innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
innodb_buffer_pool_size=768M # 384M
innodb_additional_mem_pool_size=20M
#innodb_flush_method=O_DIRECT
innodb_log_file_size=128M # 100M
innodb_log_files_in_group=2
innodb_log_buffer_size=32M # 8M
innodb_flush_log_at_trx_commit=1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
default-character-set=utf8
max_allowed_packet = 16M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment