Skip to content

Instantly share code, notes, and snippets.

@nikitasius
Created February 26, 2017 02:45
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 nikitasius/024812e254f96b26ad8d84c35d35374c to your computer and use it in GitHub Desktop.
Save nikitasius/024812e254f96b26ad8d84c35d35374c to your computer and use it in GitHub Desktop.
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
#init-connect='SET NAMES utf8'
lc-messages-dir = /usr/share/mysql
language = /usr/share/mysql/english
skip-external-locking
bind-address = 127.0.0.1
collation-server = utf8mb4_unicode_ci
#utf8mb4_unicode_ci
character-set-server = utf8mb4
#utf8mb4
event_scheduler = on
innodb_file_per_table = 1
innodb_flush_method=O_DIRECT
innodb_lock_wait_timeout = 50
innodb_buffer_pool_size = 1G
join_buffer_size = 32M
max_connections = 1024
max_allowed_packet = 256M
max_join_size = 4096000
myisam_sort_buffer_size = 32M
myisam-recover = BACKUP
thread_cache_size = 16
key_buffer_size=32M
net_buffer_length = 16K
read_buffer_size=64M
read_rnd_buffer_size = 8M
sort_buffer_size = 32M
bulk_insert_buffer_size = 256M
expire_logs_days = 10
max_binlog_size = 100M
#
tmp_table_size = 512M
max_heap_table_size = 512M
#
table_cache = 8192
open-files-limit = 262144
transaction-isolation = READ-COMMITTED
query_cache_type = 2
query_cache_limit = 2M
query_cache_size = 256M
connect_timeout=30
wait_timeout=300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment