# For advice on how to change settings please see
#
http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html[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.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# socket = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
#log-bin=/databak/mysql-bin/mysql-bin
log_bin_trust_function_creators=1
skip-name-resolve
server-id=1
port=3306
federated
binlog-do-db=mysql
binlog-do-db=ORST_CLOUD
binlog-do-db=information_schema
binlog-do-db=performance_schema
replicate-do-db=mysql
replicate-do-db=ORST_CLOUD
replicate-do-db=information_schema
replicate-do-db=performance_schema
binlog-ignore-db=test
replicate-ignore-db=test
#slave-skip-errors = 1062
#*** parameter set ***
innodb_buffer_pool_size = 2G
innodb_log_file_size = 512M
sync_binlog = 1
slow_query_log = ON
long_query_time = 3
binlog_format = ROW
transaction_isolation = READ-COMMITTED
query_cache_size = 0
query_cache_type = 0
interactive_timeout = 7200
wait_timeout = 7200
expire_logs_days = 30
max_connections = 5000
max_connect_errors = 30
event_scheduler=ON
group_concat_max_len=1024000
innodb_flush_log_at_trx_commit=2
character-set-server = utf8
max_allowed_packet = 600M
[mysqldump]
quick
max_allowed_packet = 600M
之前我优化的参数,你可以借鉴操作,核对有效使用