Master-Master Replication With MySQL 5 On Fedora 8 - Page 2
3 Replication3.1 Firewall Configuration On Both SystemsVersions of system-config-firewall-tui before 1.0.12-4.x had a bug in conjunction with custom rules (they were not aquired) - so check which version is installed on your system. yum list installed | grep firewall If the installed version is lower than 1.0.12-4.x you have to update to the new version. While I was writing this howto, the new version was only available in the updates-testing repository. yum --enablerepo=updates-testing update system-config-firewall-tui In order that the mysql servers are able to connect each other you have to open the port 3306 (tcp) on both systems. system-config-firewall-tui Click on "Customize". Insert the MySQL-port into the section "Other Ports" as shown on the screenshot below and click on "OK" to save the settings. Click on "OK".
3.2 Log Directory On Both SystemsIn order that the MySQL server is able to create log-files we have to create a directory and pass the ownership to MySQL. mkdir /var/log/mysql/
3.3 MySQL ConfigurationIn the next two steps we adjust the MySQL configuration on both systems for master-master replication.
3.3.1 System 1vi /etc/my.cnf Add the following lines to the section [mysqld]: server-id = 1 master-host = 192.168.0.200 log-bin = /var/log/mysql/mysql-bin.log relay-log = /var/lib/mysql/slave-relay.log expire_logs_days = 10 Afterwards restart the MySQL server. /etc/init.d/mysqld restart
3.3.2 System 2vi /etc/my.cnf Add the following lines to the section [mysqld]: server-id = 2 master-host = 192.168.0.100 log-bin= /var/log/mysql/mysql-bin.log relay-log = /var/lib/mysql/slave-relay.log expire_logs_days = 10 Afterwards restart the MySQL server. /etc/init.d/mysqld restart
|






Recent comments
23 hours 29 min ago
1 day 8 hours ago
1 day 9 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 20 hours ago
2 days 6 hours ago
2 days 11 hours ago
2 days 12 hours ago