首页 > 数据库 > MySQL > 正文

MySQL-5.6配置文件

2024-07-24 12:59:31
字体:
来源:转载
供稿:网友
# MySQL5.6 configure file (PROD)# MySQL_version 5.6# Version 1.1# Date    2017-02-17[mysqld]# generic configuration optionsdefault-time-zone= "+8:00"user            = mysqlport		    = 3306basedir         =/usr/local/mysqldatadir         =/data/mysql/mysql3306/data/tmpdir          =/data/mysql/mysql3306/tmp/slave-load-tmpdir        = /data/mysql/mysql3306/tmp/ socket          =/data/mysql/mysql3306/data/mysql.socklog-error       =/data/mysql/mysql3306/data/error.logpid-file        =/data/mysql/mysql3306/data/mysql.pidcharacter-set-server         = utf8collation-server             = utf8_binexplicit_defaults_for_timestamp = 1#sql_mode = "STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER"#-----------------myisam---------------------------------------key_buffer_size              = 500Mmyisam_max_sort_file_size    = 1G#myisam_recovermyisam_repair_threads        = 1myisam_sort_buffer_size      = 500Mmax_heap_table_size          = 128Mtmp_table_size               = 128Mjoin_buffer_size             = 16Mread_buffer_size             = 16Mread_rnd_buffer_size         = 16Msort_buffer_size             = 16M#----------------myisam end------------------------------------#------------------innodb--------------------------------------default-storage-engine          = InnoDBinnodb_data_home_dir            = /data/mysql/mysql3306/data/innodb_log_group_home_dir       = /data/mysql/mysql3306/data/innodb_additional_mem_pool_size = 128Minnodb_buffer_pool_size         = 4Ginnodb_data_file_path           = ibdata1:100M:autoextendinnodb_status_file              = 1innodb_file_per_table           = 1innodb_flush_log_at_trx_commit  = 1sync_binlog                     = 1innodb_io_capacity              = 2000innodb_lock_wait_timeout        = 60innodb_log_buffer_size          = 32Minnodb_purge_threads            = 4innodb_log_files_in_group       = 2innodb_log_file_size            = 1Ginnodb_rollback_on_timeoutinnodb_support_xa               = 1innodb_read_io_threads          = 8innodb_write_io_threads         = 8innodb_buffer_pool_instances    = 4innodb_buffer_pool_load_at_startup = 1innodb_buffer_pool_dump_at_shutdown = 1innodb_flush_neighbors = 1innodb_undo_directory = /data/mysql/mysql3306/data/innodb_undo_logs = 128innodb_undo_tablespaces = 3innodb_print_all_deadlocks = 1#innodb_flush_neighbor_pages     = 0#------------------innodb end------------------------------------#------------------- log-----------------------------------------log-bin               = /data/mysql/mysql3306/logs/mysql-binlog-bin-index         = /data/mysql/mysql3306/logs/mysql-bin.indexrelay-log             = /data/mysql/mysql3306/logs/relay-binrelay-log-index       = /data/mysql/mysql3306/logs/relay-bin.indexserver-id             = 10153306binlog_cache_size     = 64Mmax_allowed_packet    = 64Mmax_binlog_cache_size = 4Gexpire_logs_days      = 60log_warnings          = 1slow_query_logslow_query_log_file   = /data/mysql/mysql3306/logs/slow.loglog_queries_not_using_indexes = 1log_slow_admin_statements     = 1log_slow_slave_statements     = 1log_throttle_queries_not_using_indexes = 10long_query_time       = 0.5#--------------------log end-------------------------------------#----------------------replication-------------------------------master_info_repository = TABLErelay_log_info_repository = TABLEgtid_mode=onenforce-gtid-consistency=onlog_slave_updatesbinlog_format = rowrelay_log_recovery = 1binlog_gtid_simple_recovery = 1slave_skip_errors = ddl_exist_errors#--------------------replication end-----------------------------#replicate-wild-ignore-table     = mysql.%#replicate-wild-ignore-table     = performance_schema.%group_concat_max_len            = 1024transaction_isolation           = REPEATABLE-READ#----------------qcache-------------------query_cache_size         = 0query_cache_type         = 0#----------------qcache end---------------  skip-symbolic-linksskip-external-lockingskip-name-resolve#skip-slave-startback_log                = 200max_connections         = 1000max_user_connections    = 800max_connect_errors      = 99999open_files_limit        = 65535#wait_timeout            = 1800#interactive_timeout     = 1800lock_wait_timeout       = 120net_read_timeout        = 120net_write_timeout       = 120thread_cache_size       = 300#thread_concurrency      = 32#init_slave              = 'set sql_mode = STRICT_ALL_TABLES'local_infile            = 1ft_min_Word_len         = 1#lower_case_table_namestable_open_cache = 1024thread_stack = 256Kinnodb_max_dirty_pages_pct = 70innodb_flush_method = O_DIRECTinnodb_commit_concurrency=0bulk_insert_buffer_size = 64M[mysqldump]quickmax_allowed_packet = 64M[mysql]no-auto-rehashdefault-character-set           = utf8[isamchk]key_buffer = 50Msort_buffer_size = 50Mread_buffer = 8Mwrite_buffer = 8M[myisamchk]key_buffer = 50Msort_buffer_size = 50M  read_buffer = 8Mwrite_buffer = 8M[mysqlhotcopy]interactive-timeout[client]port   = 3306
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表