mysql master slave replication error
Hi,
I have a mysql server(version 5.6) on MAC. And another CentOS 6 box with mysql 5.1. I did the replication with MAC system DB as master and CentOS as slave. Everything went well. and these are output of status on both system: PHP Code:
Code:
mysql> show slave status; PHP Code:
Quote:
PHP Code:
PHP Code:
Quote:
So I checked the table is corrupted or not on slave,its saying corrupted: PHP Code:
|
I don't really know exactly what is wrong, maybe you could try to repair it. Mysql has a few alternatives for this, here's one link: http://dev.mysql.com/doc/refman/5.1/...ng-tables.html
But I must say I doubt it. You are replicating from a higher version master to a lower version slave, and not only one major version between but two! The other way might work - it's not supported, only with one major version difference, but still it could work. You see, a new version often means changes in database structure, so replication from 5.6 to 5.1 means slave gets data it can't handle. But I can't be sure of course, sometimes it works the way you do it. So, you do have a backup of course, take another one before you start repairing. You could try with mysql's built-in repair tools, I've used them a few times with good result. Another possibility is to take out a fresh dump of testdb.user_basic_info from master and insertit into slave. Youll have to be careful here, stop mysql check position etc. And please report back, I'm very interrested in how it goes! |
The issue got resolved. I installed mysql-server the same version as master in the slave and it worked fine without any error.
|
All times are GMT -5. The time now is 06:55 PM. |