[client]
port = 3306
socket = /arp/data/3306/mysql.sock
# The MySQL server
[mysqld]
port = 3306
user = mysql
socket = /arp/data/3306/mysql.sock
pid-file = /arp/data/3306/mysql.pid
datadir = /arp/data/3306/data
tmpdir = /arp/data/3306/tmp
explicit_defaults_for_timestamp
server-id = 1143306
lower_case_table_names = 1
character-set-server = utf8
federated
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,oracle
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,oracle
skip-name-resolve
max_connect_errors = 100000
interactive_timeout = 86400
wait_timeout = 86400
sync_binlog=0
#back_log=100
default-storage-engine = InnoDB
log_slave_updates = 1
#*********** Logs related settings ***********
log-bin = /arp/data/3306/binlog/mysql-bin
binlog_format= mixed
binlog_cache_size=32m
max_binlog_cache_size=64m
max_binlog_size=512m
long_query_time = 3
log_output = FILE
log-error = /arp/data/3306/mysql-error.log
slow_query_log = 1
slow_query_log_file = /arp/data/3306/slow_statement.log
#log_queries_not_using_indexes
general_log = 0
general_log_file = /arp/data/3306/general_statement.log
expire-logs-days = 14
relay-log = /arp/data/3306/binlog/relay-bin
relay-log-index = /arp/data/3306/binlog/relay-bin.index
#****** MySQL Replication 5.6 New Feature*********
master-info-repository=TABLE
relay-log-info-repository=TABLE
relay-log-recovery
#*********** INNODB Specific options ***********
innodb_buffer_pool_size = 2048M
#transaction-isolation=REPEATABLE-READ
#innodb_buffer_pool_instances = 8
innodb_data_home_dir = /arp/data/3306/innodb_ts
innodb_data_file_path = ibdata1:2048M:autoextend
innodb_thread_concurrency = 8
innodb_log_buffer_size = 256M
innodb_log_file_size = 2G
innodb_log_files_in_group = 3
innodb_log_group_home_dir = /arp/data/3306/innodb_log
innodb_max_dirty_pages_pct = 70
#innodb_flush_method=O_DIRECT
#*********** percona_server_command_parameters***********
innodb_lru_scan_depth=4000
innodb_flush_neighbors=0
innodb_io_capacity=25000
innodb_io_capacity_max=50000
innodb_flush_log_at_trx_commit=1
innodb_buffer_pool_instances=15
innodb_file_format=Barracuda
innodb_checksum_algorithm=crc32
innodb_file_per_table=true
innodb_doublewrite=1
innodb_flush_method=O_DIRECT_NO_FSYNC
innodb_purge_threads=4
table_open_cache=15000
open_files_limit=15000
max_connections=15000
innodb_read_io_threads=8
innodb_write_io_threads=8
innodb_change_buffering=all
loose-innodb_sync_array_size=16
query_cache_type=OFF
thread_cache_size=1000
back_log=2000
connect_timeout=15
loose-metadata_locks_hash_instances=256
max_prepared_stmt_count=1048560
loose-performance_schema=0
# --- below is Percona Server Specific ---
innodb_sched_priority_cleaner=39
innodb_log_block_size=4096
innodb_adaptive_hash_index_partitions=65
[mysql]
no-auto-rehash
default-character-set=gbk
prompt = (\u@\h) [\d]>\_
保存my.cnf文件。