• mysql从的配置文件


    mysql 从的配置文件

    [client]
    port = 3306
    socket = /data/mysql/data/mysql.sock
    #default-character-set=utf8
    [mysqld]
    #skip-grant-tables
    sync_binlog=0
    innodb_flush_log_at_trx_commit=0
    default-time-zone = '+8:00'
    local-infile=0
    skip-name-resolve
    skip-external-locking
    back_log = 300
    max_connections = 1000 
    max_allowed_packet = 32M
    binlog_cache_size = 1M
    max_heap_table_size = 64M
    sort_buffer_size = 2M
    query_cache_type=0
    join_buffer_size = 2M
    thread_cache = 8
    ft_min_word_len = 4
    thread_stack = 192K
    tmp_table_size = 64M
    port = 3306
    socket = /data/mysql/data/mysql.sock
    skip-external-locking
    key_buffer_size = 16M
    table_open_cache = 400 
    net_buffer_length = 8K
    read_buffer_size = 256K
    read_rnd_buffer_size = 512K
    myisam_sort_buffer_size = 8M
    datadir=/data/mysql/data
    log-bin=mysql-bin
    replicate-ignore-db=test
    replicate-ignore-db=performance_schema
    replicate-ignore-db=information_schema
    binlog-ignore-db=mysql
    binlog-ignore-db=information_schema
    binlog_format=row
    server-id =202
    relay-log=relay-bin
    relay-log-index=relay-bin
    log-queries-not-using-indexes
    long_query_time =1
    slow_query_log=on
    log_queries_not_using_indexes=off
    slow_query_log_file=/data/mysql/logs/slow_query.log
    log-error=/data/mysql/logs/error.log
    key_buffer_size = 32M
    read_buffer_size = 2M
    read_rnd_buffer_size = 2M
    bulk_insert_buffer_size = 64M
    myisam_sort_buffer_size = 32M
    myisam_max_sort_file_size = 10M
    myisam_repair_threads = 1
    myisam_recover
    innodb_buffer_pool_size=5000M
    innodb_additional_mem_pool_size=32M
    innodb_data_file_path = ibdata1:10M:autoextend
    innodb_file_io_threads = 4
    innodb_thread_concurrency = 16
    innodb_log_buffer_size = 8M
    innodb_log_file_size = 128M
    innodb_log_files_in_group = 3
    innodb_max_dirty_pages_pct = 90
    innodb_lock_wait_timeout = 120
    innodb_file_per_table=1
    innodb_open_files=500
    character-set-server = utf8
    wait_timeout=300
    interactive_timeout=300
    innodb_flush_method=O_DIRECT
    log-bin-trust-function-creators=1
    log_slave_updates = 1
    relay-log = /data/mysql/logs/relay-log.log


    [mysqldump]
    quick
    max_allowed_packet = 16M
    user=root
    password=root

    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates
    #user=root
    #password=root

    [myisamchk]
    key_buffer_size = 20M
    sort_buffer_size = 20M
    read_buffer = 2M
    write_buffer = 2M

    [mysqlhotcopy]
    interactive-timeout

  • 相关阅读:
    nodejs-supervisor
    javascript数组操作(创建、元素删除、数组的拷贝)
    mysql索引优化-order/group
    php-kafka
    大流量高并发解决方案
    MySQL数据类型和常用字段属性总结
    php一致性hash算法
    面试中的排序算法总结
    PHP的运行机制与原理(底层)
    Mysql中的锁机制
  • 原文地址:https://www.cnblogs.com/you0329/p/8590845.html
Copyright © 2020-2023  润新知