-
Book Overview & Buying
-
Table Of Contents
High Availability MySQL Cookbook
By :
In this recipe, we will see how to configure a replication slave and initiate the replication process. This recipe assumes that a master server is already configured, with a replication user account configured for the slave.
In this recipe, we show how to configure a slave server without showing how to sync data, which is shown in the next recipe. This recipe would be perfect if you have two freshly installed MySQL servers for example, or if you have a slave, which is a clone of a master that is not being updated, using virtualization.
The first step is to verify that the two servers have different server ID parameters in my.cnf by executing the following command in the mysql client on both servers:
mysql> SHOW VARIABLES LIKE "server_id"; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | server_id | 5 | +---------------+-------+ 1 row in set (0.00 sec)
If two servers in a replication...
Change the font size
Change margin width
Change background colour