Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

mysql CHANGE MASTER TO command's MASTER_HOST's length limitation

$
0
0

I'm trying to setup replication for my database which is powered by mysql 5.6.

The master uses RDS and the slave is built on EC2 instance, so the MASTER_HOST has a pretty long hostname (62 characters).

When I use change master to command to specify MASTER_HOST and start slave, show slave status gives me an connection error, which looks like the hostname is overflowed and part of the hostname string (which is 61 characters) has been saved (to master.info also).

I have tried another hostname, which is shorter, and succeeded.

I have checked the document but nothing about MASTER_HOST hostname length limitation has been mentioned.

Is this a bug? Or have I done anything wrong? Thanks in advance.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



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