

MySQL 主从连接正常,但是不同步数据该怎么排查
source link: https://www.v2ex.com/t/802277
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

ice2016 11 小时 4 分钟前
moell 10 小时 29 分钟前
@ice2016 不好意思,现在看是有错误日志的。我尝试过从 bin_log 文件的第一个位置开始同步,和最新的主库的位置开始同步都没成功 。
[Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=localhost-relay-bin' to avoid this problem.
[Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[ERROR] Slave I/O for channel '': error connecting to master '' - retry-time: 60 retries: 1, Error_code: 2003
[Warning] Slave SQL for channel '': If a crash happens this configuration does not guarantee that the relay log info will be consistent, Error_code: 0
[Note] Slave SQL thread for channel '' initialized, starting replication in log 'bin_log13.000001' at position 23289168, relay log './localhost-relay-bin.000004' position: 101377
[Note] Event Scheduler: Loaded 0 events
[Note] /usr/local/mysql/bin/mysqld: ready for connections.
Recommend
-
75
开发一个守护进程脚本,每30秒监控一次mysql主从复制是否异常(包括不同步及延迟)#!/bin/bashfile=/root/mysql.txt #mysql> show slave status\G;这个命令可以查看状态信息...
-
57
day05一、数据备份与恢复-增量备份和增量恢复a.binlog日志介绍(二进制文件):使用Mysql数据库服务日志文件类型的一种。记录除查询之外的sql命令。默认没启用查询的sql包括:selectdescshow不是查询的命令:insertupdatedeletecreatedropgrantrevokeb.启用binlog...
-
11
Redis 高可用篇:你管这叫主从架构数据同步原理?发布于 3 月 19 日在《Redis 核心篇:唯快不破的秘密》中...
-
10
服务器中可以正常访问 但是代码中就是UnknownHostException
-
10
解决办法就是修改注册表。搜到的 教程 1 将 EnableActiveProbing 改为 0,我重启后没能解决。 后面搜到
-
9
一、问题介绍 电脑通过路由器可以正常上网,但是无法同步Internet时间,如下图:
-
3
mysql安装步骤(4)双机互为主从同步数据 祈雨的博客 2017-09-30
-
6
V2EX › 职场话题 公司是正常 5 天 8 小时的工作时间,但是老板每次开会都会洗脑要大家晚上和周末义务加班
-
8
Windows 10 蓝牙耳机连接正常,但是没声音的解决办法 By
-
3
主库已有数据配置MySQL8主从同步,我的从库是使用了docker搭建的,已有数据需要先锁表停止写入,再把主库数据导入从库,最后再开启同步 话不多说,开搞 第一步 写主库和从库的MySQL配置 主库配置
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK