Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

5. Troubleshooting Replication > Displaying Slave Status

Displaying Slave Status

Before we start troubleshooting threads, I’ll present an excellent source of replication state information: the SHOW SLAVE STATUS query for slaves.

The following examples were taken when running a slave without errors and a slave whose master has stopped to show how errors would look. I’ll discuss the output in chunks.

mysql> SHOW SLAVE STATUS\G
*************************** 1. row ***************************
               Slave_IO_State: Connecting to master

This is the status of the I/O thread. For a running slave, it usually contains Waiting for master to send event:

               Slave_IO_State: Waiting for master to send event
                  Master_Host: 127.0.0.1
                  Master_User: root
                  Master_Port: 4041
                Connect_Retry: 60
              Master_Log_File: mysqld511-bin.000007

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint