Created
October 11, 2017 02:22
-
-
Save esokullu/c619b553fd6a94e6e618bd09592e99b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[client] | |
port = 3306 | |
socket = /var/lib/mysql/mysql.sock | |
#default-character-set = utf8 | |
[mysqld_safe] | |
open-files-limit = 32768 | |
[mysqld] | |
port = 3306 | |
socket = /var/lib/mysql/mysql.sock | |
#default-character-set = utf8 | |
wait_timeout = 28800 | |
max_allowed_packet = 16M | |
table_cache = 8192 | |
thread_cache_size = 256 | |
max_heap_table_size = 32M | |
tmp_table_size = 32M | |
sort_buffer_size = 256k | |
read_buffer_size = 256k | |
################################################################################ | |
# MyISAM | |
################################################################################ | |
# As you convert to InnoDB, consider lowering: | |
# SELECT SUM(index_length)/1024/1024/1024 AS index_in_gb | |
# FROM information_schema.tables | |
# WHERE engine='MyISAM'; | |
key_buffer = 1G # 2GB | |
read_rnd_buffer_size = 256k | |
myisam_sort_buffer_size = 128M | |
################################################################################ | |
# InnoDB | |
################################################################################ | |
innodb_lock_wait_timeout = 60 | |
################################################################################ | |
# REPLICATION | |
################################################################################ | |
query_cache_size = 64M | |
query_cache_type = 1 | |
thread_concurrency = 16 | |
log-bin=mysql-bin | |
server-id = 21 | |
max_connections = 750 | |
max_connect_errors = 100 | |
# SERIOUSLY CONSIDER REMOVING THESE | |
# auto_increment_increment = 3 | |
# auto_increment_offset = 1 | |
innodb_log_group_home_dir = /var/lib/mysql | |
innodb_buffer_pool_size = 35G # 10G | |
innodb_log_file_size = 256M | |
innodb_log_buffer_size = 4M | |
innodb_flush_method = O_DIRECT | |
innodb_flush_log_at_trx_commit = 2 | |
innodb_data_file_path = ibdata1:10M:autoextend | |
innodb_log_files_in_group = 2 | |
innodb_data_home_dir = /var/lib/mysql | |
datadir = /var/lib/mysql | |
skip-slave-start | |
wait_timeout = 28800 | |
net_read_timeout = 60 | |
net_write_timeout = 80 | |
[mysqldump] | |
quick | |
max_allowed_packet = 16M | |
[mysql] | |
no-auto-rehash | |
[isamchk] | |
key_buffer = 256M | |
sort_buffer_size = 256M | |
read_buffer = 2M | |
write_buffer = 2M | |
[myisamchk] | |
key_buffer = 512M | |
sort_buffer_size = 512M | |
read_buffer = 4M | |
write_buffer = 4M | |
[mysqlhotcopy] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment