zoukankan      html  css  js  c++  java
  • MYSQL 中binlog 参数的记录

    http://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html

     binlog_cache_size

    Command-Line Format --binlog_cache_size=#
    System Variable Name binlog_cache_size
    Variable Scope Global
    Dynamic Variable Yes
    Permitted Values (32-bit platforms) Type integer
    Default 32768
    Min Value 4096
    Max Value 4294967295
    Permitted Values (64-bit platforms) Type integer
    Default 32768
    Min Value 4096
    Max Value 18446744073709551615

    要注意的是,SIZE的单位是BYTE.

    32768是指容量为32k。 

    参见http://blog.csdn.net/lxpbs8851/article/details/38455223

    show status like '%binlog%';

    stmt就是statement的意思

    Binlog_cache_disk_use  (事务类)二进志日志缓存的已经存在硬盘的条数 

    Binlog_cache_use    (事务类)二进制日志已缓存的条数(内存中)    注意,这个不是容量,而是事务个数。每次有一条事务提交,都会有一次增加

    Binlog_stmt_cache_disk_use  (非事务类)二进志日志缓存的已经存在硬盘的条数  

    Binlog_stmt_cache_use  (非事务类)二进制日志已缓存的条数(内存中) 非事务型的语句,都存在这儿,比如MYISAM引擎的表,插入记录就存在这儿


    binlog_cache_use和binlog_cache_disk_use两者结合可以用来调整binlog_cache_size的大小
    binglog_stmt_cache_use和binlog_stmt_cache_disk_use两者结合可以有来调整 binlog_stmt_cache_size的大小

    这两个值是单独设置的。

     感谢 http://blog.itpub.net/25099483/viewspace-1469049/

  • 相关阅读:
    天啦噜!原来Chrome自带的开发者工具能这么用你知道么!
    JavaScript易错知识点整理
    2016年开源巨献:来自百度的71款开源项目
    前端js面试中的常见的算法问题
    详解JS跨域问题
    console 输出信息
    js身份证校验
    阻止页面回退
    pc端js常用方法
    js实现QQ、微信、新浪微博分享功能
  • 原文地址:https://www.cnblogs.com/crossapply/p/5434147.html
Copyright © 2011-2022 走看看