标签:查看 user long help ast int roo isp man
# cat > /etc/mysql/my.cnf <<END [client] port = 3306 socket = /var/run/mysqld/mysqld.sock [mysqld] port = 3306 socket = /var/run/mysqld/mysqld.sock back_log = 80 basedir = /usr tmpdir = /tmp datadir = /var/lib/mysql #-------------------gobal variables------------# slave-parallel-type=LOGICAL_CLOCK slave-parallel-workers=16 slave_preserve_commit_order= on gtid_mode = ON relay_log_info_repository = TABLE master_info_repository = TABLE relay_log_recovery = on enforce_gtid_consistency = ON binlog_checksum = NONE log_slave_updates = ON log-bin = /var/lib/mysql/mysql-bin max_connect_errors = 20000 max_connections = 2000 wait_timeout = 3600 interactive_timeout = 3600 net_read_timeout = 3600 net_write_timeout = 3600 table_open_cache = 1024 table_definition_cache = 1024 thread_cache_size = 512 open_files_limit = 10000 character-set-server = utf8 collation-server = utf8_bin skip_external_locking performance_schema = 1 user = mysql myisam_recover_options = DEFAULT skip-name-resolve local_infile = 0 lower_case_table_names = 0 #--------------------innoDB------------# innodb_buffer_pool_size = 2000M innodb_data_file_path = ibdata1:200M:autoextend innodb_flush_log_at_trx_commit = 1 innodb_io_capacity = 600 innodb_lock_wait_timeout = 120 innodb_log_buffer_size = 8M innodb_log_file_size = 200M innodb_log_files_in_group = 3 innodb_max_dirty_pages_pct = 85 innodb_read_io_threads = 8 innodb_write_io_threads = 8 innodb_support_xa = 1 innodb_thread_concurrency = 32 innodb_file_per_table innodb_rollback_on_timeout #------------session variables-------# join_buffer_size = 8M key_buffer_size = 256M bulk_insert_buffer_size = 8M max_heap_table_size = 96M tmp_table_size = 96M read_buffer_size = 8M sort_buffer_size = 2M max_allowed_packet = 64M read_rnd_buffer_size = 32M #------------MySQL Log----------------# log-bin = my3306-bin binlog_format = row sync_binlog = 1 expire_logs_days = 15 max_binlog_cache_size = 128M max_binlog_size = 500M binlog_cache_size = 64k slow_query_log log-slow-admin-statements log_warnings = 1 long_query_time = 0.25 #---------------replicate--------------# relay-log-index = relay3306.index relay-log = relay3306 server-id =88 init_slave = ‘set sql_mode=STRICT_ALL_TABLES‘ log-slave-updates [myisamchk] key_buffer = 512M sort_buffer_size = 512M read_buffer = 8M write_buffer = 8M [mysql] prompt=MySQL [\\d]> default-character-set=utf8 [mysqlhotcopy] interactive-timeout [mysqld_safe] open-files-limit = 8192 log-error = /var/lib/mysql/mysqld_error.log END
标签:查看 user long help ast int roo isp man
原文地址:https://www.cnblogs.com/manger/p/9342531.html