Skip to content

Commit 551ed21

Browse files
committed
docs/README.md
1 parent df4f062 commit 551ed21

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

README.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,86 @@
11
# MySQL8.0 Replication Docker
22

3+
- Run
4+
35
```zsh
46
docker-compose up --build -d
57
```
68

9+
- Start Replica
10+
711
```sql
812
-- mysql80 slave(172.5.0.3)
913

1014
START REPLICA USER='repl' PASSWORD='';
1115
```
16+
17+
- Show Replica Status
18+
19+
```sql
20+
SHOW REPLICA STATUS;
21+
```
22+
23+
```json
24+
{
25+
"Replica_IO_State": "Waiting for source to send event",
26+
"Source_Host": "172.5.0.2",
27+
"Source_User": "repl",
28+
"Source_Port": 3306,
29+
"Connect_Retry": 60,
30+
"Source_Log_File": "mysql-bin.000003",
31+
"Read_Source_Log_Pos": 157,
32+
"Relay_Log_File": "4cb45b0b8afc-relay-bin.000003",
33+
"Relay_Log_Pos": 326,
34+
"Relay_Source_Log_File": "mysql-bin.000003",
35+
"Replica_IO_Running": "Yes",
36+
"Replica_SQL_Running": "Yes",
37+
"Replicate_Do_DB": "",
38+
"Replicate_Ignore_DB": "",
39+
"Replicate_Do_Table": "",
40+
"Replicate_Ignore_Table": "",
41+
"Replicate_Wild_Do_Table": "",
42+
"Replicate_Wild_Ignore_Table": "",
43+
"Last_Errno": 0,
44+
"Last_Error": "",
45+
"Skip_Counter": 0,
46+
"Exec_Source_Log_Pos": 157,
47+
"Relay_Log_Space": 723,
48+
"Until_Condition": "None",
49+
"Until_Log_File": "",
50+
"Until_Log_Pos": 0,
51+
"Source_SSL_Allowed": "No",
52+
"Source_SSL_CA_File": "",
53+
"Source_SSL_CA_Path": "",
54+
"Source_SSL_Cert": "",
55+
"Source_SSL_Cipher": "",
56+
"Source_SSL_Key": "",
57+
"Seconds_Behind_Source": 0,
58+
"Source_SSL_Verify_Server_Cert": "No",
59+
"Last_IO_Errno": 0,
60+
"Last_IO_Error": "",
61+
"Last_SQL_Errno": 0,
62+
"Last_SQL_Error": "",
63+
"Replicate_Ignore_Server_Ids": "",
64+
"Source_Server_Id": 1,
65+
"Source_UUID": "797aaa63-60df-11ee-a723-0242ac050002",
66+
"Source_Info_File": "mysql.slave_master_info",
67+
"SQL_Delay": 0,
68+
"SQL_Remaining_Delay": null,
69+
"Replica_SQL_Running_State": "Replica has read all relay log; waiting for more updates",
70+
"Source_Retry_Count": 86400,
71+
"Source_Bind": "",
72+
"Last_IO_Error_Timestamp": "",
73+
"Last_SQL_Error_Timestamp": "",
74+
"Source_SSL_Crl": "",
75+
"Source_SSL_Crlpath": "",
76+
"Retrieved_Gtid_Set": "",
77+
"Executed_Gtid_Set": "",
78+
"Auto_Position": 0,
79+
"Replicate_Rewrite_DB": "",
80+
"Channel_Name": "",
81+
"Source_TLS_Version": "",
82+
"Source_public_key_path": "",
83+
"Get_Source_public_key": 0,
84+
"Network_Namespace": ""
85+
}
86+
```

0 commit comments

Comments
 (0)