<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Document_Managing_Mysql_Replication_Procedures</id>
	<title>Document Managing Mysql Replication Procedures - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Document_Managing_Mysql_Replication_Procedures"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Document_Managing_Mysql_Replication_Procedures&amp;action=history"/>
	<updated>2026-07-27T11:09:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Document_Managing_Mysql_Replication_Procedures&amp;diff=4287&amp;oldid=prev</id>
		<title>Admin: Auto-created from uploaded PDF text extraction</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Document_Managing_Mysql_Replication_Procedures&amp;diff=4287&amp;oldid=prev"/>
		<updated>2026-07-26T16:27:09Z</updated>

		<summary type="html">&lt;p&gt;Auto-created from uploaded PDF text extraction&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;Auto-generated from the uploaded PDF [[:File:Document_Managing_Mysql_Replication_Procedures.pdf|Document_Managing_Mysql_Replication_Procedures.pdf]]. This is an extracted-text rendering for searchability; see the original PDF for exact formatting, diagrams, tables, and images.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Process Document&lt;br /&gt;
to Manage Mysql&lt;br /&gt;
   Replication&lt;br /&gt;
 Environments at&lt;br /&gt;
 Radico Rampur&lt;br /&gt;
&lt;br /&gt;
Table of Contents&lt;br /&gt;
Infrastructure Used.....................................................................................................................................2&lt;br /&gt;
Mysql Replication Manual Monitoring......................................................................................................2&lt;br /&gt;
      Status for mysql slave status on Linux mysql Slave.........................................................................2&lt;br /&gt;
      Status for mysql slave status on Windows mysql Slave...................................................................4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Infrastructure Used&lt;br /&gt;
     •     Mysql 8.0.12 on Windows 2012 (IP 172.30.3.155 ) as MASTER Node .&lt;br /&gt;
     •     Mysql 8.0.12 on Windows 2012 (IP 172.30.3.220 ) as Ist SLAVE Node&lt;br /&gt;
     •     Mysql 8.0.12 on Linux / Centos 6.10 (IP 172.30.3.6 ) as 2nd SLAVE Node&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mysql Replication Manual Monitoring&lt;br /&gt;
&lt;br /&gt;
Status for mysql slave status on Linux mysql Slave&lt;br /&gt;
     1. Login on Centos server as root&lt;br /&gt;
     2. login on mysql shell&lt;br /&gt;
           1. mysql -u root -p&lt;br /&gt;
           2. give password&lt;br /&gt;
     3. Run&lt;br /&gt;
           1. mysql&amp;gt;&lt;br /&gt;
           2. mysql&amp;gt; show slave status\G&lt;br /&gt;
           3. expect output as following with Seconds_Behind_Master: 0 sec or &amp;gt; 100 Sec&lt;br /&gt;
*************************** 1. row ***************************&lt;br /&gt;
        Slave_IO_State: Waiting for master to send event&lt;br /&gt;
          Master_Host: 172.30.3.155&lt;br /&gt;
          Master_User: slave_user&lt;br /&gt;
          Master_Port: 3306&lt;br /&gt;
&lt;br /&gt;
          Connect_Retry: 60&lt;br /&gt;
         Master_Log_File: binlog.000073&lt;br /&gt;
      Read_Master_Log_Pos: 127606919&lt;br /&gt;
         Relay_Log_File: mysql-relay-bin.000007&lt;br /&gt;
          Relay_Log_Pos: 12171808&lt;br /&gt;
    Relay_Master_Log_File: binlog.000073&lt;br /&gt;
        Slave_IO_Running: Yes&lt;br /&gt;
       Slave_SQL_Running: Yes&lt;br /&gt;
         Replicate_Do_DB:&lt;br /&gt;
      Replicate_Ignore_DB:&lt;br /&gt;
       Replicate_Do_Table:&lt;br /&gt;
    Replicate_Ignore_Table:&lt;br /&gt;
   Replicate_Wild_Do_Table:&lt;br /&gt;
 Replicate_Wild_Ignore_Table:&lt;br /&gt;
            Last_Errno: 0&lt;br /&gt;
            Last_Error:&lt;br /&gt;
          Skip_Counter: 0&lt;br /&gt;
      Exec_Master_Log_Pos: 127606919&lt;br /&gt;
         Relay_Log_Space: 12172016&lt;br /&gt;
         Until_Condition: None&lt;br /&gt;
         Until_Log_File:&lt;br /&gt;
          Until_Log_Pos: 0&lt;br /&gt;
       Master_SSL_Allowed: No&lt;br /&gt;
       Master_SSL_CA_File:&lt;br /&gt;
       Master_SSL_CA_Path:&lt;br /&gt;
         Master_SSL_Cert:&lt;br /&gt;
       Master_SSL_Cipher:&lt;br /&gt;
         Master_SSL_Key:&lt;br /&gt;
    Seconds_Behind_Master: 0&lt;br /&gt;
Master_SSL_Verify_Server_Cert: No&lt;br /&gt;
          Last_IO_Errno: 0&lt;br /&gt;
          Last_IO_Error:&lt;br /&gt;
         Last_SQL_Errno: 0&lt;br /&gt;
         Last_SQL_Error:&lt;br /&gt;
 Replicate_Ignore_Server_Ids:&lt;br /&gt;
        Master_Server_Id: 1&lt;br /&gt;
           Master_UUID: bf9992ff-6c9b-11e9-8f14-30e1716afbdd&lt;br /&gt;
        Master_Info_File: mysql.slave_master_info&lt;br /&gt;
             SQL_Delay: 0&lt;br /&gt;
      SQL_Remaining_Delay: NULL&lt;br /&gt;
   Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates&lt;br /&gt;
       Master_Retry_Count: 86400&lt;br /&gt;
           Master_Bind:&lt;br /&gt;
   Last_IO_Error_Timestamp:&lt;br /&gt;
  Last_SQL_Error_Timestamp:&lt;br /&gt;
         Master_SSL_Crl:&lt;br /&gt;
       Master_SSL_Crlpath:&lt;br /&gt;
       Retrieved_Gtid_Set:&lt;br /&gt;
       Executed_Gtid_Set:&lt;br /&gt;
&lt;br /&gt;
          Auto_Position: 0&lt;br /&gt;
     Replicate_Rewrite_DB:&lt;br /&gt;
           Channel_Name:&lt;br /&gt;
       Master_TLS_Version:&lt;br /&gt;
    Master_public_key_path:&lt;br /&gt;
     Get_master_public_key: 0&lt;br /&gt;
1 row in set (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   4. There should not be any error on the last line&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Status for mysql slave status on Windows mysql Slave&lt;br /&gt;
   1. Login on Centos server as root&lt;br /&gt;
   2. Open the mysql cli of Windows Server ( 172.30.3.220 ) by&lt;br /&gt;
   3. mysql -h 172.30.3.220 -uroot -p&lt;br /&gt;
   4. give the password&lt;br /&gt;
   5. mysql&amp;gt; show slave status\G&lt;br /&gt;
   6. expect output as following with Seconds_Behind_Master: 0 sec or &amp;gt; 100 Sec&lt;br /&gt;
   7. There should not be any error on the last line&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Contingency Plan and execution&lt;br /&gt;
The execution plan below is for any failures on Mysql Environment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Master node ( 172.30.3.155) Failure&lt;br /&gt;
In case the Server Hardware , Mysql Software or Long. Downtime Plan of Master Mysql Node , the&lt;br /&gt;
following plan will ensure the immediate availability of Mysql Environment .&lt;br /&gt;
&lt;br /&gt;
Steps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   1. Shut down the Master node and ensure that Master node is not working .&lt;br /&gt;
   2. On the Ist Slave , I.E Windows Slave Server ( 172.30.3.220 ) , put the IP of Master Mysql&lt;br /&gt;
      Server for Client Access Availability&lt;br /&gt;
   3. Open Mysql CLI of Mysql Workbench and give password for login&lt;br /&gt;
&lt;br /&gt;
4. On mysql&amp;gt; prompt&lt;br /&gt;
5. mysql&amp;gt;STOP SLAVE;&lt;br /&gt;
6. mysql&amp;gt;RESET MASTER;&lt;br /&gt;
7. That’s It Now your Master server is Running .&lt;br /&gt;
8. On Sencond Slave server , I.e Linux Mysql Server&lt;br /&gt;
   1. mysql&amp;gt; STOP SlAVE;&lt;br /&gt;
   2. mysql&amp;gt; START SLAVE;&lt;br /&gt;
9. check the slave status as per Mysql manual monitoring for Replication&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>