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

  • 相关阅读:
    为什么Redis比Memcached易
    请注意CSDN社区微通道,许多其他的精彩等着你
    采用ACE登录设施(一)HelloWorld
    AIX 7.1 install python
    spring mvc入门
    iOS开展——全球应对MotionEvent
    2015第35周日
    2015第35周六转相见恨晚的知识列表
    2015第35周五JavaScript变量
    2015第35周四
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351557.html
Copyright © 2011-2022 走看看