首页 文章

Slave没有在mysql主从复制中将任何数据写入表中

提问于
浏览
1

我在设置Master-Slave配置时遇到了困难 .

主数据库在Ubuntu(Amazon AWS实例)上运行,并成功设置主复制 .

我有localhost作为Slave Server . (Windows机器) .

Snapshot of Master Database
Master Replication

Master database has record
Master Replication has 34 tables

Binar Log Information
Binary Log

Process List on Master Replication
enter image description here

Status of Master Replication
enter image description here

我调试主复制,我认为这是正常的 .

在Salve Side: Status on Slave Side
Status on Slave Replication

尽管MASTER_LOG和MASTER_POS已同步,但数据未同步 .

目前,我在Slave端有0个表,在Master端有34个表 .

Tables on Slave side
enter image description here

我愿意接受任何建议或任何参考 .

我花了一整天时间试图找到我做错了什么 . 我想将我的本地数据库与远程服务器上托管的数据库同步 .

Update: Thigs I did to debug the Master-Slave Replication

  • 已检查的主数据库已启动并正在运行 .

  • 主站状态和已连接从站 . [其中包括每个服务器的唯一ID . ]

  • 从属数据库启动并运行[包括Slave IO Thread和SQL线程正在运行 . ]

这三个步骤可确保主从复制正常运行而不会出现任何问题 .

处理数据同步问题

  • 在master数据库中创建/更新/删除数据,以检查数据是否在服务器上同步 .

  • Checked Binary Log [具体我检查了文件大小 . 如果我输入数据文件大小会不断增加 . ]

提前致谢 .

1 回答

相关问题