Skip to content

Instantly share code, notes, and snippets.

@shrekuu
Last active April 6, 2016 11:47
Show Gist options
  • Save shrekuu/53424bd3cb4f93aa29a4 to your computer and use it in GitHub Desktop.
Save shrekuu/53424bd3cb4f93aa29a4 to your computer and use it in GitHub Desktop.
mac; mysql charset code; memory size limit control
# @温柔的码农
[client]
loose-default-character-set = utf8
[mysql]
loose-default-character-set = utf8
[mysqld]
collation-server = utf8_unicode_ci
loose-default-character-set = utf8
character-set-server = utf8
init-connect = 'SET NAMES utf8'
skip-character-set-client-handshake
# mac os yosemite; mysqld taking too much RAM; mysqld 500MB RAM
# prevent the mysqld from eating up RAM(make it drop from 500MB to 80MB)
max_connections = 10
key_buffer_size = 16K
max_allowed_packet = 1M
table_open_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 128K
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment