Skip to content

Instantly share code, notes, and snippets.

@manhg
Created February 18, 2014 06:24
Show Gist options
  • Save manhg/9065581 to your computer and use it in GitHub Desktop.
Save manhg/9065581 to your computer and use it in GitHub Desktop.
MySQL Config (OSX, 5.6) for reduced RAM usage (Normally ~400M, tuned into ~30M)
[mysqld]
join_buffer_size = 512K
sort_buffer_size = 64K
read_rnd_buffer_size = 256K
net_buffer_length=2K
thread_stack = 128K
skip-external-locking
key_buffer_size = 16K
max_allowed_packet = 1M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
datadir=/Volumes/Dev/_tools/db/mysql_data
query_cache_limit=256K
query_cache_size=2M
default_storage_engine=MyISAM
default_tmp_storage_engine=MyISAM
performance_schema = OFF
table_open_cache = 64
max_connections = 10
innodb_buffer_pool_size = 5M
innodb_log_file_size = 4M
innodb_log_buffer_size = 4M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 1M
sort_buffer_size = 1M
[mysqldump]
max_allowed_packet = 16M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment