Seconds_Behind_Master
Linux/MySql : 2010/02/17 16:06
Replication의 환경에서
master에서 어떤 SQL문이 실행되고 있을때, kill 을 시키면
slave에서 에러가 발생하는 현상이 있었다.
이럴때는 slave에서
mysql>show slave status\G
의 내용중
last_error
항목을 보고 처리하면 된다.
-- error
Last_Error: Query partially completed on the master (error on master: 1053) and was aborted.
There is a chance that your master is inconsistent at this point.
If you are sure that your master is ok, run this query manually on the slave and then restart the slave with
-- solution
mysql>SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
mysql>START SLAVE;
이렇게 하면 현재 에러의 내용을 SKIP 하고 다음 내용을 처리한다.
TAG MySql
Trackback Address :: http://jjangu.pe.kr/blog/trackback/590



