Yahoo web space - Chapter 18 . Replication 527 MySQL server versions
Thursday, May 22nd, 2008Chapter 18 . Replication 527 MySQL server versions For replication to work successfully, you must be running the same version of MySQL on all servers participating in the replication. There are exceptions to this rule, but for the most part it s a good idea to get the latest version of MySQL running on all participating replication servers so that the features and back-end code operate as expected. The file format for replication changed in MySQL version 3.23.26 and again in version 4. If you are running an older version and cannot update, you re required to run old versions of MySQL on all servers that participate in the replication. Version 4 of MySQL can participate in a 3.23.26 (or greater) version of replication. The server will check the version running on the master, and if it is a 3.x version, the appropriate format is used. Security By default, replication traffic is sent via unencrypted packets an unacceptable arrangement for secure databases and updates. This is especially true of updates that traverse untrusted networks. Beginning with version 4 of MySQL you can configure replication to use Secure Sockets Layer (SSL) for replication traffic. Using SSL, traffic is encrypted and thus safer as it travels across an untrusted network. Using SSL with MySQL replication assumes that you have OpenSSL installed and working. If you do not have OpenSSL installed, you can t use SSL for MySQL replication. Configuring Replication This section gets down to the business of configuring replication. I ll begin by examining the variables and settings for replication and then continue by looking at a simple replication configuration between one master server and two slaves. Additional replication configurations are also examined in this section. Replication variables and settings Some options for replication are only available within a particular context; they apply only to a master server or only to a slave server. The options are set within the MySQL configuration file such as my.cnf or my.ini. Table 18-1 lists the settings applicable for a master server.
If you are in need for chaep and reliable webhost to host your website, our recommendation is http web server services.