Created
May 23, 2017 14:54
-
-
Save futeng/c41642cfadd8421ff8d0d0bba020a13b 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 = 3308 | |
socket = /tmp/mysql3308.sock | |
[mysql] | |
prompt = mysql [\d]> | |
default_character_set = utf8 | |
no-auto-rehash | |
[mysqld] | |
#misc | |
user = mysql | |
basedir = /usr/local/mysql | |
datadir = /data/mysql/mysql_3308/data | |
port = 3308 | |
socket = /tmp/mysql3308.sock | |
event_scheduler = 0 | |
tmpdir=/data/mysql/mysql_3308/tmp | |
#timeout | |
interactive_timeout = 43200 | |
wait_timeout = 43200 | |
#character set | |
character-set-server = utf8 | |
open_files_limit = 65535 | |
max_connections = 100 | |
max_connect_errors = 100000 | |
# | |
explicit_defaults_for_timestamp | |
#logs | |
log-output=file | |
slow_query_log = 1 | |
slow_query_log_file = slow.log | |
log-error = error.log | |
log_error_verbosity=3 | |
pid-file = mysql.pid | |
long_query_time = 1 | |
#log-slow-admin-statements = 1 | |
#log-queries-not-using-indexes = 1 | |
log-slow-slave-statements = 1 | |
#binlog | |
binlog_format = row | |
server-id = 1343308 | |
log-bin = /data/mysql/mysql_3308/logs/mysql-bin | |
binlog_cache_size = 1M | |
max_binlog_size = 200M | |
max_binlog_cache_size = 2G | |
sync_binlog = 0 | |
expire_logs_days = 10 | |
#group replication | |
server_id=1013308 | |
gtid_mode=ON | |
enforce_gtid_consistency=ON | |
master_info_repository=TABLE | |
relay_log_info_repository=TABLE | |
binlog_checksum=NONE | |
log_slave_updates=ON | |
binlog_format=ROW | |
transaction_write_set_extraction=XXHASH64 | |
loose-group_replication_group_name="13855fca-d2ab-11e6-8f37-005056b8286c" | |
loose-group_replication_start_on_boot=off | |
loose-group_replication_local_address= "192.168.128.132:23308" | |
loose-group_replication_group_seeds= "192.168.128.130:33061,192.168.128.131:33071,192.168.128.132:33081" | |
loose-group_replication_bootstrap_group= off | |
loose-group_replication_single_primary_mode=off | |
loose-group_replication_enforce_update_everywhere_checks=on | |
#relay log | |
skip_slave_start = 1 | |
max_relay_log_size = 500M | |
relay_log_purge = 1 | |
relay_log_recovery = 1 | |
#slave-skip-errors=1032,1053,1062 | |
#buffers & cache | |
table_open_cache = 2048 | |
table_definition_cache = 2048 | |
table_open_cache = 2048 | |
max_heap_table_size = 96M | |
sort_buffer_size = 2M | |
join_buffer_size = 2M | |
thread_cache_size = 256 | |
query_cache_size = 0 | |
query_cache_type = 0 | |
query_cache_limit = 256K | |
query_cache_min_res_unit = 512 | |
thread_stack = 192K | |
tmp_table_size = 96M | |
key_buffer_size = 8M | |
read_buffer_size = 2M | |
read_rnd_buffer_size = 16M | |
bulk_insert_buffer_size = 32M | |
#myisam | |
myisam_sort_buffer_size = 128M | |
myisam_max_sort_file_size = 10G | |
myisam_repair_threads = 1 | |
#innodb | |
innodb_buffer_pool_size = 500M | |
innodb_buffer_pool_instances = 1 | |
innodb_data_file_path = ibdata1:100M:autoextend | |
innodb_flush_log_at_trx_commit = 2 | |
innodb_log_buffer_size = 64M | |
innodb_log_file_size = 256M | |
innodb_log_files_in_group = 3 | |
innodb_max_dirty_pages_pct = 90 | |
innodb_file_per_table = 1 | |
innodb_rollback_on_timeout | |
innodb_status_file = 1 | |
innodb_io_capacity = 2000 | |
transaction_isolation = READ-COMMITTED | |
innodb_flush_method = O_DIRECT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment