1[client] 2port = 3306 3socket = /tmp/mysql.sock 4default-character-set = utf8 5[mysqld] 6default-character-set = utf8 7user = mysql 8port = 3306 9socket = /tmp/mysql.sock 10basedir = /usr/local/mysql 11datadir = /data/mysql/data 12log-error = /data/mysql/mysql-error.log 13pid-file = /data/mysql/mysql.pid 14ft_min_word_len = 1 15old-passwords = 1 16log_slave_updates = 1 17log-bin = /data/mysql/binlog/mysql-bin 18binlog_format = mixed 19binlog_cache_size = 4M 20max_binlog_cache_size = 8M 21max_binlog_size = 1G 22expire_logs_days = 90 23binlog-ignore-db = mysql 24binlog-ignore-db = test 25binlog-ignore-db = information_schema 26key_buffer_size = 384M 27read_buffer_size = 4M 28read_rnd_buffer_size = 16M 29sort_buffer_size = 8M 30join_buffer_size = 8M 31thread_cache_size = 8 32query_cache_size = 32M 33query_cache_limit = 2M 34query_cache_min_res_unit = 2k 35thread_concurrency = 8 36table_cache = 614 37table_open_cache = 512 38open-files-limit = 10240 39back_log = 600 40max_connections = 5000 41max_connect_errors = 6000 42external-locking = FALSE 43max_allowed_packet = 16M 44default-storage-engine = MYISAM 45thread_stack = 256K 46transaction_isolation = REPEATABLE-READ 47tmp_table_size = 256M 48max_heap_table_size = 512M 49bulk_insert_buffer_size = 64M 50myisam_sort_buffer_size = 64M 51myisam_max_sort_file_size = 10G 52myisam_repair_threads = 1 53myisam_recover 54long_query_time = 2 55slow_query_log 56slow_query_log_file = /data/mysql/slow.log 57skip-locking 58skip-name-resolve 59server-id = 1 60innodb_additional_mem_pool_size = 16M 61innodb_buffer_pool_size = 512M 62innodb_data_file_path = ibdata1:10M:autoextend 63innodb_file_io_threads = 4 64innodb_thread_concurrency = 8 65innodb_flush_log_at_trx_commit = 1 66innodb_log_buffer_size = 16M 67innodb_log_file_size = 128M 68innodb_log_files_in_group = 3 69innodb_max_dirty_pages_pct = 90 70innodb_lock_wait_timeout = 120 71innodb_file_per_table = 0 72[mysqldump] 73quick 74max_allowed_packet = 16M 75[mysql] 76no-auto-rehash 77Remove the next comment character if you are not familiar with SQL 78safe-updates 79[myisamchk] 80key_buffer_size = 256M 81sort_buffer_size = 256M 82read_buffer = 2M 83write_buffer = 2M 84[mysqlhotcopy] 85interactive-timeout
MySQL 线上配置文件
Wesley13
2021-10-11
1057 0 0
点赞
收藏
评论区
加载中...