Chinaunix首页 | 论坛 | 博客
  • 博客访问: 285575
  • 博文数量: 84
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: -10
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-05 09:11
文章分类
文章存档

2015年(1)

2014年(6)

2013年(8)

2012年(1)

2011年(6)

2010年(2)

2009年(16)

2008年(44)

我的朋友

分类: Mysql/postgreSQL

2008-04-24 17:10:05

 
对mysql的同步复制是否正常可以写的shell脚本定时检测下是否正常,如果不正常的话,
可以在编写个脚本手动检测下是否正常
复制正常
[mfx@5a-s03-a5 ~]$ ./showSlave.sh
复制状态

Read_Master_Log_Pos: 564628406
Exec_Master_Log_Pos: 564628406

564628406 = 564628406
MySQL replication status OK!
 写道:
> 以下为当前主从服务器的复制状态
>
> 当前Master Server二进制日志变更文件为:	5a-s03-a3-bin.000584
> 当前Slave Server从Master Server读取的日志偏移量为:	547908822
> Slave Server的SQL线程在二进制变更日志里面当前执行位置:	547901946
> 当前Slave Server的IO线程运行状态为:	Yes
> 当前Slave Server的SQL线程运行状态为:	Yes
>
> 以下为完整信息
> Slave_IO_State       :	Waiting for master to send event
> Master_Host          :	10.0.154.13
> Master_User          :	root
> Master_Port          :	3306
> Connect_Retry        :	60
> Master_Log_File      :	5a-s03-a3-bin.000584
> Read_Master_Log_Pos  :	547908822
> Relay_Log_File       :	5a-s03-a5-relay-bin.000253
> Relay_Log_Pos        :	1035135869
> Relay_Master_Log_File:	5a-s03-a3-bin.000584
> Slave_IO_Running     :	Yes
> Slave_SQL_Running    :	Yes
> Replicate_Do_DB      :	mysqlafx
> Replicate_Ignore_DB  :	
> Replicate_Do_Table   :	
> Replicate_Ignore_Table:	
> Replicate_Wild_Do_Table:	
> Replicate_Wild_Ignore_Table:	
> Last_Errno           :	0
> Last_Error           :	
> Skip_Counter         :	0
> Exec_Master_Log_Pos  :	547901946
> Relay_Log_Space      :	2108884587
> Until_Condition      :	None
> Until_Log_File       :	
> Until_Log_Pos        :	0
> Master_SSL_Allowed   :	No
> Master_SSL_CA_File   :	
> Master_SSL_CA_Path   :	
> Master_SSL_Cert      :	
> Master_SSL_Cipher    :	
> Master_SSL_Key       :	
> Seconds_Behind_Master:	0
阅读(1344) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~