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/


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM