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

mysql replication and bind-address

$
0
0

this is my first attempt at DB replication/configuration, so please bear with me )

the plan appears to be trivial - I have a master machine, running a LAMP-stack website, and I've created a "mirror" on another machine, with another domain name. In quotes, because I haven't set up the DB replication.

NOTE: MySQL version is 5.5 (Linux)

the first step of the official doc got me puzzled (duh): http://dev.mysql.com/doc/refman/5.5/en/replication-howto-masterbaseconfig.html

it talks about making sure "skip-networking" isn't turned on; this is what I find in my.cnf though:

# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = 127.0.0.1

this is equivalent to 'skip-entworking', as far as I understand -- but I'm not exactly sure what to do next. The comment on the doc tells that the address should be matched to that of the slave - but I'm suspicious; what of there are multiple slaves, with different IPs? Not my case, sure, but I'll just admit that I don't fully understand this 'bind address' thing; e.g., it being set to localhost IP, will changing it prevent local connection? Can someone please be so kind as to enlighten me on this subject? Thank 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>