V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
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
vczyh
V2EX  ›  MySQL

MySQL 作为 Binlog Server 的可行性?

  •  
  •   vczyh · 2021-12-14 17:39:22 +08:00 · 1906 次点击
    这是一个创建于 836 天前的主题,其中的信息可能已经有所发展或是发生改变。

    将 binlog 文件放到 MySQL 的 binlog 目录,启动 MySQL 作为 Master ,请问别的 Slave 从 Master 拉取 binlog 可不可以?

    5 条回复    2021-12-15 10:08:58 +08:00
    we6100
        1
    we6100  
       2021-12-14 20:02:32 +08:00 via iPhone
    mysqlbinlog -R 缺点是断开后,不能自动重连
    lance6716
        2
    lance6716  
       2021-12-14 20:13:03 +08:00 via iPhone
    为啥要这么做呢,有什么场景
    vczyh
        3
    vczyh  
    OP
       2021-12-15 09:39:21 +08:00
    @lance6716 vitess 时间点恢复需要一个 binlog server ,我们现在就是想着用 MySQL 做临时的 Master ,用完删除就好。
    vczyh
        4
    vczyh  
    OP
       2021-12-15 09:40:41 +08:00
    不考虑性能,请问大家这样做有什么问题没?
    leonhao
        5
    leonhao  
       2021-12-15 10:08:58 +08:00
    能不能直接把 log 放到 slave 的 relay log 里?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2892 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:18 · PVG 22:18 · LAX 07:18 · JFK 10:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.