zoukankan      html  css  js  c++  java
  • slave my.cnf

    [mysqld]
    basedir=/usr/local/mysql
    datadir=/data01/mysql
    socket=/data01/mysql/mysql.sock
    user=mysql
    
    slow_query_log=ON
    long_query_time=2
    
    server-id=136
    log-bin=/data01/mysqllog/binlog/mysql-bin
    binlog_format=MIXED
    max_binlog_size = 512M
    binlog_cache_size = 128K
    
    character-set-server=utf8
    default-storage-engine=INNODB 
    innodb_file_per_table=1 
    
    symbolic-links=0
    max_connections=1024
    log-error=/var/log/mysql/mysqld.log
    pid-file=/var/run/mysqld/mysqld.pid
    
    relay-log-purge=1
    replicate-ignore-db = mysql
    replicate-ignore-db = information_schema
    
    skip-slave-start
    relay_log_info_repository = TABLE  
    master_info_repository    = TABLE  
    relay_log_recovery        = 1
    
    sync_relay_log = 1
    sync_master_info = 1
    
    
    # Remove leading # and set to the amount of RAM for the most important data
    # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
    # innodb_buffer_pool_size = 128M
    
    # Remove leading # to turn on a very important data integrity option: logging
    # changes to the binary log between backups.
    # log_bin
    
    # These are commonly set, remove the # and set as required.
    # basedir = .....
    # datadir = .....
    # port = .....
    # server_id = .....
    # socket = .....
    
    # Remove leading # to set options mainly useful for reporting servers.
    # The server defaults are faster for transactions and fast SELECTs.
    # Adjust sizes as needed, experiment to find the optimal values.
    # join_buffer_size = 128M
    # sort_buffer_size = 2M
    # read_rnd_buffer_size = 2M 
    
    sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
    read_only

  • 相关阅读:
    mysql修改时区time_zone
    magento的布局(layouts)、模块(block)、模板(templates)
    唯品会消息网关的架构定位
    Java应用一般架构
    maven打包命令
    端口查看与封杀
    java程序优化
    高并发下竞争的资源
    java中的多线程高并发与负载均衡的用途
    Web负载均衡的几种实现方式
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351557.html
Copyright © 2011-2022 走看看