ターン:ウィルは、ライブラリがメインのライブラリであるか、ライブラリから決定MySQLの方法。

##それは、出力を記録しますライブラリーからの場合: 

MySQLの>ショースレーブステータス\ G。
*************************** 1行******************** *******
Slave_IO_State:
MASTER_HOST:10.200.212.66
Master_User:REPL
MASTER_PORT:3306
Connect_Retry:60
MASTER_LOG_FILE:MySQLの-bin.000004
Read_Master_Log_Pos:150641419
RELAY_LOG_FILE:MySQLのリレー-bin.000009
RELAY_LOG_POS:4
のRelay_Master_Log_File:MySQLのビン0.000004
Slave_IO_Running:いいえ
Slave_SQL_Running:はい
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno:0
LAST_ERROR:
Skip_Counter:0
Exec_Master_Log_Pos:150641419
Relay_Log_Space:240
Until_Condition:なし
Until_Log_File:
Until_Log_Pos:0
Master_SSL_Allowed:いいえ
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:いいえ
Last_IO_Errno:2003
Last_IO_Error:エラー[email protected]」マスターに接続しています。 212.66:3306' -再試行時間:60回の再試行:86400
Last_SQL_Errno:0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id:0
Master_UUID:2e3c5fc9-8b01-11e8-a7f2-005056a6ac0b
Master_Info_File:/crbank/mysql/data/mydata/master.info
SQL_Delay:0
SQL_Remaining_Delay:NULL
Slave_SQL_Running_State:スレーブは、すべてのリレーログを読みました。それを更新するために、スレーブI / Oスレッドを待っている
Master_Retry_Count:86400
Master_Bind:
Last_IO_Error_Timestamp:191016夜06時07分25秒
Last_SQL_Error_Timestamp:
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:2e3c5fc9-8b01-11e8-a7f2-005056a6ac0b:1から163031、
3d838987- 8b2e-11e8-a918-005056a671cc:1から48721749
Auto_Position:1
セット内の1行(0.00秒)

ERROR:
指定されていませんクエリ

 

###は、メインのライブラリである場合には、このコマンドが出力されます。そして、READ_ONLY状態がオフになっています。

MySQLの> SHOWのマスターステータス。
+ ------------------ + ----------- + -------------- + --- --------------- + ---------------------------------- -------------------------------------------------- ------------ +
| ファイル| 位置| Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+ ------------------ + ----------- + -------------- + --- --------------- + ---------------------------------- -------------------------------------------------- ------------ +
| mysqlの-bin.000259 | 416932786 | | | 2e3c5fc9-8b01-11e8-a7f2-005056a6ac0b:1から163031、
3d838987-8b2e-11e8-a918-005056a671cc:1から48730726 |
+ ------------------ + ----------- + -------------- + --- --------------- + ---------------------------------- -------------------------------------------------- ------------ +
セット内の1行(0.00秒)

「READ_ONLY」のようなMySQLの>ショー変数。
+ --------------- + ------- +
| 変数名| バリュー|
+ --------------- + ------- +
| READ_ONLY | OFF |
+ --------------- + ------- +
セットにおける1行(0.00秒)

 

 

「READ_ONLY」のようなMySQLの>ショー変数。
+ --------------- + ------- +
| 変数名| バリュー|
+ --------------- + ------- +
| READ_ONLY | OFF |
+ --------------- + ------- +
セットにおける1行(0.00秒)

 

 

###

まれに、

 

おすすめ

転載: www.cnblogs.com/feiyun8616/p/11820754.html