Did you create the new master with a backup from the slave or from an old backup of the original master? Before setting up replication again, you just need to make sure that your master and slave have the same data, either by restoring them both from the same backup or by restoring the master from a new backup of the slave if the slave has the most up to date data.
Once you give more details on what you actually did, I can try to give you more help.
At this point you are likely better off just rebuilding the slave from a fresh backup of the new master ([url]Percona XtraBackup). If you knew what the log file and position of the new master was when originally setup, and if you knew for sure that the slave was synced when the master was rebuilt, it could be possible to restart replication that way. But the likelihood of replication errors and inconsistent data is pretty high going that route without having pretty solid knowledge of what you were doing and preparing for that ahead of time.
My first, probably a silly query, since i will be using the same “replication” server that i had used earlier,
Do you suggest i just drop the existing DB on this server or do i have a fresh installation of the new OS and redo the whole thing one by one ?
If you are using Xtrabackup and following the steps in the Percona guide I posted, then you should be able to just remove the data directory contents on the slave, copy in the prepared backup you took from the master, set proper ownership permissions, start MySQL, and then configure replication (the CHANGE MASTER TO part) based on the steps in the same guide.
My fault, I figured out the error with backup …i thought hot backup was not possible, But i now know/…and have managed to backup up my DB on the Master server
Glad you got it worked out! Yes the main benefit of Xtrabackup is the ability to backup a running server with little impact (if using all InnoDB/XtraDB). =)
Secondly, when i issue “grant” statement on the MASTER server :-
TheMaster|mysql> GRANT REPLICATION SLAVE ON . TO ‘root’@‘$slaveip’ IDENTIFIED BY ‘$slavepass’;
and then run the ‘show grants’ command on the MASTER, I DO NOT SEE the grants issues above, :-
What i see is :-
mysql> show grants;
±---------------------------------------------------------------------------------------------------------------------------------------+
| Grants for root@localhost |
±---------------------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON . TO ‘root’@‘localhost’ IDENTIFIED BY PASSWORD ‘*B54DAEC9554BF364E94BE34320BB868A24446646’ WITH GRANT OPTION |
| GRANT PROXY ON ‘’@‘’ TO ‘root’@‘localhost’ WITH GRANT OPTION |
±---------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)