MYSQL 中binlog 参数的记录
2016-04-26 10:48
501 查看
http://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html
要注意的是,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/
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 |
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/
相关文章推荐
- mysql-性能,命令-explain,show processlist,show
- mysql 5.7.12 免安装版,windows 配置
- MySQL在线DDL工具pt-online-schema-change
- MySql为何默认不用hash索引而用BTree索引的几点原因
- 关于mysql锁表的几种形式
- 使用PowerDesigner设计建造MySQL数据库
- mysql视图
- mysql 5.7版本安装(解压版)
- mysql 汉字转成拼音
- vs2010 c# MySql 用户登录注册设计代码优化1
- mysql的空值与NULL的区别
- MySQL中批量删除指定前缀表的sql语句
- MYSQL下载及重装的步骤
- mysql show 语句
- [mysql] Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'loser.tank_admin.login_ip' which is not functionally dependent on columns in GROUP BY clause; this is
- web day17 JDBC入门,DAO模式mySQL时间类型转换,批处理
- 跟我一起学习MySQL技术内幕(第五版):(第二章学习日记11)
- mysql int(1) 与 tinyint(1) 有什么区别?
- 处理mysql gtid模式下主从同步案例一则---主从数据不一致
- MYSQL日志的正确删除方法详解