› MySQL 5.5 Community Server
› MySQL 5.6 Community Server
› Percona Configuration Wizard
› XtraBackup 搭建主从复制
Great Sites on MySQL
› Percona
› MySQL Performance Blog
› Severalnines
推荐管理工具
› Sequel Pro
› phpMyAdmin
推荐书目
› MySQL Cookbook
MySQL 相关项目
› MariaDB
› Drizzle
参考文档
› http://mysql-python.sourceforge.net/MySQLdb.html
Nickwongfree
V2EX  ›  MySQL

MySQL binlog 日志占用空间太大的解决办法

  •  
  •   Nickwongfree · Jun 29, 2019 · 5522 views
    This topic created in 2645 days ago, the information mentioned may be changed or developed.
    MySQL5.6, binlog_format=row 的情况下
    binlog_row_image 将默认设置从 full 改成 MINIMAL,因为只记录更新的行,无关的行不记录,可以大大减少大表 update 的日志量
    不过这对 binlog 用作数据恢复时有什么影响吗(除了不能通过 binLog 生成反向 SQL 了)

    网上搜到的都没有相关说明:
    https://blog.51cto.com/hcymysql/2143391
    https://segmentfault.com/a/1190000016008847
    2 replies  •  2019-07-26 21:36:48 +08:00
    jaskle
        1
    jaskle  
       Jun 30, 2019 via Android
    硬盘多便宜,恢复数据多麻烦,定期备份,只保留最新增量才是明智之举
    Nickwongfree
        2
    Nickwongfree  
    OP
       Jul 26, 2019
    @jaskle #1 数量多了就不便宜了哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2652 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 09:05 · PVG 17:05 · LAX 02:05 · JFK 05:05
    ♥ Do have faith in what you're doing.