Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
- urgent

- urgent

2007-10-03       - By Ratheesh K J

 Back
Thanks,

It helped me a lot. I wanted to know
 1.. what are the various scenarios where my replication setup can fail?
(considering even issues like network failure and server reboot etc). What is
the normal procedure to correct the failure when something unpredicted happens?
 2.. What are the scenarios where the SQL THREAD stops running and what are
the scenarios where the IO THREAD stops running?
 3.. Does SQL_SLAVE_SKIP_COUNTER skip the statement of the master binlog from
being replicated to the slave relay log OR Has the statement already been
copied into the slave relay log and has been skipped from the relay log?
 4.. How do I know immediately that replication has failed? ( have heard that
the enterprise edition has some technique for this )?
Thanks & regards,
Ratheesh

-- -- Original Message -- --
From: "Jan Kirchhoff" <kirchy@(protected)>
To: "Ratheesh K J" <ratheesh.kj@(protected)>
Cc: <mysql@(protected)>
Sent: Tuesday, October 02, 2007 4:16 PM
Subject: Re: [Replication] - urgent


> Ratheesh K J schrieb:
>> Hello all,
>>
>> I issued a create table statement on the master for a table which was not
present on the master but present on the slave.
>> I did this purposely to see the error on slave.
>>
>> I am a newbie to replication. Now when i see SLave status on the slave
machine it shows that the SQL Thread has stopped.
>>
>> When I start the SQL thread it does not start and gives the error message
that the table exists. How do i correct this and how do I calculate the next
position that the slave must start executing from the relay log.
>>
>> Is there any article on MySQL replication that tells me how to deal when
errors occur.
>>
>> Thanks & regards,
>> Ratheesh
>>  
>
> You have 2 options:
>
> 1.
> on the slave, enter "SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;" and then
> "SLAVE START;" on the slave. This skips the upcoming entry in the binlog
> which is the create table command that causes your problem.
>
> 2.
> if you don't have any data in the table on the slave, just drop the
> table and do a "slave start;", it will then create the table again as
> this is the next command in the binlog.
>
> Remember: never write on the slave without knowing what you do and
> you'll be happy with your replication ;)
>
> Jan