Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1954

replication master-slave issue (2 replies)

$
0
0
Hi,
I'm setting up a slave to my master mysql server.
The master was configured as a master AFTER the tables was created and information was inserted.

Up to this point, I have used percona xtrabackup to create a backup of the master, and restored it on the slave. ( I am using InnoDB tables )

I now have some difficulties replicating the data.
The slave stops at a error:

Last_SQL_Errno: 1329
Last_SQL_Error: Error 'No data - zero rows fetched, selected, or processed' on query. Default database: xxx 'UPDATE table SET column = 'yyy1' WHERE column1 = 'yyy' AND column2 = 'zzzz''


If I do a select count(*) on the affected table, the number of rows does not match.

The slave knows the pos of the master:

mysql> show master status;
+------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.003511 | 78921762 | | |
+------------------+----------+--------------+------------------+


mysql>show slave status\G;
Master_Log_File: mysql-bin.003511
Read_Master_Log_Pos: 78921762

How do I go ahead and solve this issue?
Also, How do I verify that the master and slave contain the same data?


best regards
Emil

Viewing all articles
Browse latest Browse all 1954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>