21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno:0
Last_Error:
Skip_Counter:0
Exec_Master_Log_Pos:362
Relay_Log_Space:694
Until_Condition:None
Until_Log_File:
Until_Log_Pos:0
Master_SSL_Allowed:No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master:NULL
Master_SSL_Verify_Server_Cert:No
Last_IO_Errno:0
Last_IO_Error:
Last_SQL_Errno:0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id:1
Master_UUID:0c130d47-22bb-11e4-aaaa-000c2986ac80
Master_Info_File:mysql.slave_master_info
SQL_Delay:0
SQL_Remaining_Delay:NULL
Slave_SQL_Running_State:Slavehasreadallrelaylog;waiting
fortheslaveI/Othreadtoupdateit
Master_Retry_Count:86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp:
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position:0
1rowinset(0.00sec)
激活从库(从库上操作)
1
2
3
4
5
6
7
8
9
10
11
root@localhost:francs>stopslave;
root@localhost:francs>resetmaster;
root@localhost:francs>resetslaveall;
root@localhost:francs>showbinarylogs;
+----------------+-----------+
|Log_name|File_size|
+----------------+-----------+
|bin-log.000001|120|
+----------------+-----------+
1rowinset(0.00sec)
备注:resetslaveall命令会删除从库的replication参数,之后showslavestatusG的信
息返回为空。
将原来主库变为从库
评论