# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.

#set mysqld root directory
basedir = /data/mysql

#set mysqld sockfile
socket = /tmp/mysql.sock

#data directory
datadir = /data/mysql/data

#mysql port
port = 30001

#log file path
log-error="/data/temp/mysql_err.log"

#Max connections
max_connections=800

#character_set_database, character_set_server, character_set_client
character-set-server=utf8

innodb_flush_log_at_trx_commit=2

#Number of process pool waits
back_log=200

#Show processlist ,Close the idle time in the process pool
wait_timeout=1800

#core CPU * 2 
innodb_thread_concurrency=16

#key buffer , 8GMem 400M
key_buffer_size=400M

#Request packet maximum limit
max_allowed_packet=32M


binlog_cache_size=4M

read_rnd_buffer_size=16M
read_buffer_size=8M

sort_buffer_size=16M

join_buffer_size=16M

#thread cache
thread_cache_size=64

innodb_buffer_pool_size=1024M
#innodb_additional_mem_pool_size=16M
innodb_log_buffer_size=16M

query_cache_size=128M

[client]

default-character-set=utf8

socket=/tmp/mysql.sock

results matching ""

    No results matching ""