Skip to content

Instantly share code, notes, and snippets.

@wjhrdy
Created October 17, 2012 21:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjhrdy/3908213 to your computer and use it in GitHub Desktop.
Save wjhrdy/3908213 to your computer and use it in GitHub Desktop.
/usr/local/etc/my.cnf
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
event_scheduler = ON
skip-character-set-client-handshake
collation_server = utf8_unicode_ci
character_set_server = utf8
port = 3306
socket = /tmp/mysql.sock
max_connections = 255
table_open_cache = 256
max_allowed_packet = 32M
binlog_cache_size = 1M
max_heap_table_size = 64M
read_buffer_size = 2M
read_rnd_buffer_size = 4M
sort_buffer_size = 8M
join_buffer_size = 512k
thread_cache_size = 2
thread_concurrency = 2
query_cache_size = 16M
query_cache_limit = 2M
default-storage-engine = INNODB
thread_stack = 192K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 64M
# MyISAM Options
key_buffer_size = 64M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 128M
myisam_max_sort_file_size = 1G
myisam_repair_threads = 1
myisam_recover
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 16M
write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment