#Ram 16G
#CPU 8core
[mysqld]
# GENERAL
datadir= /var/lib/mysql
socket = /var/lib/mysql/mysql.sock
pid_file = /var/lib/mysql/mysql.pid
user = mysql
port = 3306
storage_engine = InnoDB
# INNODB
innodb_buffer_pool_size = 12GB
innodb_log_file_size = 128MB
innodb_log_files_in_group = 128MB
innodb_file_per_table = 1
innodb_flush_method = O_DIRECT
innodb_log_buffer_size = 16
sort_buffer_size = 8MB
join_buffer_size = 8M
# MyISAM
key_buffer_size = 512MB
# LOGGING
log_error = /var/lib/mysql/mysql-error.log
log_slow_queries= /var/lib/mysql/mysql-slow.log
# OTHER
tmp_table_size = 32M
max_heap_table_size = 32M
query_cache_type = 1
query_cache_size = 512MB
query_cache_limit = 8MB
thread_concurrency = 16
max_connections = 1000
thread_cache_size = 256
table_cache_size = 10000
open_files_limit = 65535
#Safety and Sanity Settings
expire_logs_days = 7
max_allowed_packet = 64MB
max_connect_errors = 1000
wait_timeout = 7200
connect_timeout = 20
skip_name_resolve
symbolic-links=0
[client]
socket= /var/lib/mysql/mysql.sock
port = 3306