› 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
leassy
V2EX  ›  MySQL

大师帮我看看这个从服务器正常吗

  •  
  •   leassy · Jan 15, 2015 · 3251 views
    This topic created in 4294 days ago, the information mentioned may be changed or developed.

    Master_Log_File: mysql-bin.000226
    Read_Master_Log_Pos: 847479878
    Relay_Log_File: relaylog.000409
    Relay_Log_Pos: 7911512
    Relay_Master_Log_File: mysql-bin.000226
    Slave_IO_Running: Yes
    Slave_SQL_Running: Yes

    Read_Master_Log_Pos 总是比 Relay_Log_Pos大很多
    有时候同步正常,有时候会卡死,是不是跟这两个数值有关

    7 replies  •  2015-01-16 04:22:13 +08:00
    leassy
        1
    leassy  
    OP
       Jan 15, 2015
    没人能帮到我么
    yangqi
        2
    yangqi  
       Jan 15, 2015
    这两个之间没有关系,都是相对于本身文件的位置
    leassy
        3
    leassy  
    OP
       Jan 15, 2015
    @yangqi 那我想看当前还有多少没同步是看哪个值呢
    yangqi
        4
    yangqi  
       Jan 15, 2015   ❤️ 1
    看seconds_behind_master
    leassy
        5
    leassy  
    OP
       Jan 15, 2015
    @yangqi 当这个值是0的话就是正常的吧
    yangqi
        6
    yangqi  
       Jan 15, 2015   ❤️ 1
    @leassy 是的
    msg7086
        7
    msg7086  
       Jan 16, 2015   ❤️ 1
    Master_Log_File: mysql-bin.000226
    Read_Master_Log_Pos: 847479878
    -> 读取的主服务器文件 mysql-bin.000226 at 847MB

    Relay_Log_File: relaylog.000409
    Relay_Log_Pos: 7911512
    -> 复制后从服务器文件 relaylog.000409 at 7.9MB

    两者没有必然联系的,如果你relaylog的断点比较小的话,就很有可能会产生更多更小的文件,文件访问位置也会不一样。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   837 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:10 · PVG 05:10 · LAX 14:10 · JFK 17:10
    ♥ Do have faith in what you're doing.