I am facing an issue regrading data replication between two MySql database. Two database are situated at two different IP address based system. And it is working properly when testing on local host but when I connect the system with another remote system it is giving this error message:
error in connecting the master @ XX.xxx
and error no is 2013. What might be the reason? I am also not able to ping to this IP address.(Firewall is diabled) though i can access any application(php+mysql) deployed on this IP address XX.xxx.
Try to connect from one host to the other with a normal mysql client using the same properties as the replication user ( mysql -h[other ip] -P[other port] -u[replication user] -p[replication user password] ) and issue normal sql commands ( select now() ). If that doesn't work it's an issue with the firewall or similar. Perhaps apparmour if you are running some kind if Linux.
If it does work make sure that user has the REPLICATION SLAVE privilege, it won't work without it.
Well, the error message basically tells you what is the issue at hand: the slave has an issue connecting to the master.
There could be several possibilities causing this, either network issues or setup issues.
Some Advice:
REPLICATION SLAVE
privilege? It might even be a bit more complicated than this, but first give us something to debug further.
This provides a detailed description on how to do it with no problems. http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.