• 线上真实的一些配置文件


      mysql的配置文件也是主的配置文件

    [root@root ~]# cat /etc/my.cnf
    [client]
    port            = 3306
    socket          = /tmp/mysql.sock
    default-character-set=utf8
    [mysqld]
    port            = 3306
    socket          = /tmp/mysql.sock
    wait_timeout=1000
    interactive_timeout=1000
    max-connect-errors=100000
    max-connections=2000
    innodb_flush_method=O_DIRECT
    skip-name-resolve
    innodb_buffer_pool_size = 8000M
    innodb_additional_mem_pool_size = 16M
    innodb_log_buffer_size = 64M
    innodb_log_file_size = 256M
    skip-external-locking
    key_buffer_size = 2000M
    max_allowed_packet = 16M
    table_open_cache = 256
    sort_buffer_size = 1024K
    net_buffer_length = 32K
    read_buffer_size = 512K
    read_rnd_buffer_size = 1024K
    myisam_sort_buffer_size = 16M
    slow_query_log=1
    thread_cache_size=32
    long_query_time=2
    local-infile=0
    log-bin=mysql-bin
    binlog_format=mixed
    server-id       = 10
    character_set_server=utf8
    sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
    skip-character-set-client-handshake = 1
    
    [mysqldump]
    quick
    max_allowed_packet = 16M
    
    [mysql]
    no-auto-rehash
    
    [myisamchk]
    key_buffer_size = 20M
    sort_buffer_size = 20M
    read_buffer = 2M
    write_buffer = 2M
    
    [mysqlhotcopy]
    interactive-timeout
    

      从的配置文件

    [root@root ~]# cat /etc/my.cnf
    [client]
    port            = 3306
    socket          = /tmp/mysql.sock
    default-character-set=utf8
    [mysqld]
    port            = 3306
    socket          = /tmp/mysql.sock
    log-error	= /mysql/log/error.log
    wait_timeout=1000
    interactive_timeout=1000
    max-connect-errors=100000
    max-connections=2000
    innodb_flush_method=O_DIRECT
    skip-name-resolve
    innodb_buffer_pool_size = 8000M
    innodb_additional_mem_pool_size = 16M
    innodb_log_buffer_size = 64M
    innodb_log_file_size = 256M
    skip-external-locking
    key_buffer_size = 2000M
    max_allowed_packet = 16M
    table_open_cache = 256
    sort_buffer_size = 1024K
    net_buffer_length = 32K
    read_buffer_size = 512K
    read_rnd_buffer_size = 1024K
    myisam_sort_buffer_size = 16M
    slow_query_log=1
    thread_cache_size=32
    long_query_time=2
    local-infile=0
    log-bin=mysql-bin
    binlog_format=mixed
    server-id       = 9
    character_set_server=utf8
    sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
    skip-character-set-client-handshake = 1
    
    [mysqldump]
    quick
    max_allowed_packet = 16M
    
    [mysql]
    no-auto-rehash
    
    [myisamchk]
    key_buffer_size = 20M
    sort_buffer_size = 20M
    read_buffer = 2M
    write_buffer = 2M
    
    [mysqlhotcopy]
    interactive-timeout
    

      

    待续其他的一些配置文件

  • 相关阅读:
    Java-继承,多态练习09-22-01
    Java-类与类之间的关系
    Java-继承 共3题
    设计模式-访问者模式
    设计模式-策略模式
    JAVA-初步认识-常用对象API(集合框架-List常用子类的特点)
    JAVA-初步认识-常用对象API(集合框架-ListIterator接口)
    JAVA-初步认识-常用对象API(集合框架-List集合的常用方法)
    JAVA-初步认识-常用对象API(集合框架-List和Set的特点)
    JAVA-初步认识-常用对象API(集合框架-迭代器的原理)
  • 原文地址:https://www.cnblogs.com/dribs/p/8446719.html
Copyright © 2020-2023  润新知