| | 115 | = Start/Stop the slave = |
| | 116 | |
| | 117 | To start the slave: |
| | 118 | {{{ |
| | 119 | mysql prompt> START SLAVE; |
| | 120 | }}} |
| | 121 | |
| | 122 | To stop it: |
| | 123 | {{{ |
| | 124 | mysql prompt> STOP SLAVE; |
| | 125 | }}} |
| | 126 | |
| | 127 | To check it status: |
| | 128 | {{{ |
| | 129 | mysql prompt> SHOW SLAVE STATUS\G |
| | 130 | }}} |
| | 131 | The displayed message looks like: |
| | 132 | {{{ |
| | 133 | mysql> SHOW SLAVE STATUS\G |
| | 134 | *************************** 1. row *************************** |
| | 135 | Slave_IO_State: Waiting for master to send event |
| | 136 | Master_Host: ippdb01 |
| | 137 | Master_User: ipp |
| | 138 | Master_Port: 3306 |
| | 139 | Connect_Retry: 60 |
| | 140 | Master_Log_File: mysqld-bin.032506 |
| | 141 | Read_Master_Log_Pos: 13793409 |
| | 142 | Relay_Log_File: mysqld-relay-bin.002900 |
| | 143 | Relay_Log_Pos: 13793547 |
| | 144 | Relay_Master_Log_File: mysqld-bin.032506 |
| | 145 | Slave_IO_Running: Yes |
| | 146 | Slave_SQL_Running: Yes |
| | 147 | Replicate_Do_DB: czardb,gpc1,ippadmin,ipptopsps,megacam,ssp,uip |
| | 148 | Replicate_Ignore_DB: |
| | 149 | Replicate_Do_Table: |
| | 150 | Replicate_Ignore_Table: |
| | 151 | Replicate_Wild_Do_Table: |
| | 152 | Replicate_Wild_Ignore_Table: |
| | 153 | Last_Errno: 0 |
| | 154 | Last_Error: |
| | 155 | Skip_Counter: 0 |
| | 156 | Exec_Master_Log_Pos: 13793409 |
| | 157 | Relay_Log_Space: 13793547 |
| | 158 | Until_Condition: None |
| | 159 | Until_Log_File: |
| | 160 | Until_Log_Pos: 0 |
| | 161 | Master_SSL_Allowed: No |
| | 162 | Master_SSL_CA_File: |
| | 163 | Master_SSL_CA_Path: |
| | 164 | Master_SSL_Cert: |
| | 165 | Master_SSL_Cipher: |
| | 166 | Master_SSL_Key: |
| | 167 | Seconds_Behind_Master: 0 |
| | 168 | 1 row in set (0.00 sec) |
| | 169 | }}} |