当前位置:网站首页>MySQL replication series 6- tables related to replication information
MySQL replication series 6- tables related to replication information
2022-06-24 15:18:00 【wangwei-dba】
Copy status information can be viewed through some statements such as (show slave status) And related system tables , They had a corresponding relationship before
Copy related tables :
1.mysql.salve_master_info: It contains the connection status between the slave library and the master library and the current configuration information , The main library ip、 Log in to the main database and copy the user account and password 、io The main library binary log file read by the thread and its location ( You need to set variables master-info-repository=TABLE)
2.mysql.slave_relay_log_info: Save the information about the execution point of the relay log from the library , Relay log files and location information 、 The binary file and location information corresponding to the main library
3.replication_applier_configuration: Record the configuration parameters for delayed replication from the library (performance_schema library )
4.replication_applier_status: Record the current general transaction execution status from the library (performance_schema library )
5.replication_applier_status_by_coordinator: Record when using multi-threaded replication from the Library , From library coordinator The working state of the thread and the error information (performance_schema library )
6.replication_applier_status_by_worker: Record the of multi-threaded replication work Thread state (performance_schema library )
7.replication_connection_configuration: Record the configuration parameters for connecting the slave library to the master library , In execution change master When inserting and changing (performance_schema library )
8.replication_connection_status: Record from library io Thread connection status information (performance_schema library )
9.replication_group_member_stats: Record transaction status statistics of group replication members (performance_schema library )
10.replication_group_member: Record network and status information of group replication members (performance_schema library )
Copy information view show slave status \G ( The way we often use )
mysql>show slave status\G; ***************************1.row*************************** Slave_IO_State:Waiting for master to send event --io Thread state Master_Host:10.1.1.11 -- Connected master library ip Master_User:repl -- User name to connect to the main library Master_Port:3312 -- Connect the port of the main library Connect_Retry:60 -- Retry interval for connecting to the primary database Master_Log_File:mysql-bin.006922 --io The thread reads the binary file name of the current main library Read_Master_Log_Pos:567117404 --io The thread reads the binary log location of the current main library Relay_Log_File:bss-mysql-slave-relay-bin.020759 -- Slave Library sql The thread reads the relay log file name Relay_Log_Pos:566686064 -- Slave Library sql Thread reads relay log file location Relay_Master_Log_File:mysql-bin.006922 -- Slave Library sql The thread reads and plays back the binary log file of the corresponding main library Slave_IO_Running:Yes -- Slave Library io Thread running state Slave_SQL_Running:Yes -- Slave Library sql Thread running state Replicate_Do_DB: -- The following replication filters are relevant Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno:0 --sql Thread error message code Last_Error: -- --sql Thread error messages Skip_Counter:0 Exec_Master_Log_Pos:566685890 -- Slave Library sql The thread reads the binary log file location of the main library corresponding to playback Relay_Log_Space:567117883 -- All relay log sizes currently exist 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:0 -- Displays the replication delay time from the Library Master_SSL_Verify_Server_Cert:No Last_IO_Errno:0 -- Lead to io Number of thread errors Last_IO_Error: --io Error message of thread error Last_SQL_Errno:0 --sql Number of thread errors Last_SQL_Error: --sql Error message of thread error Replicate_Ignore_Server_Ids: Master_Server_Id:113312 Master_UUID:e97f3051-1da4-11eb-9fe9-baf0fafbff04 Master_Info_File:mysql.slave_master_info SQL_Delay:0 -- Replication delay configures the delay time of the slave database from the master database SQL_Remaining_Delay:NULL -- Delay from library seconds remaining Slave_SQL_Running_State:Slave has read all relay log; waiting for more updates --sql State of thread Master_Retry_Count:86400 Master_Bind: Last_IO_Error_Timestamp: -- The last time io The time when the thread error occurred Last_SQL_Error_Timestamp: -- The last time sql The time when the thread error occurred Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set:e97f3051-1da4-11eb-9fe9-baf0fafbff04:873643901-2879718702 -- Receive all transactions from the library GTID SET Executed_Gtid_Set:e97f3051-1da4-11eb-9fe9-baf0fafbff04:1-2879718702 -- Of transactions executed from the library GTID SET Auto_Position:1 -- Whether to start automatic positioning Replicate_Rewrite_DB: -- Playback correspondence between master and slave databases Channel_Name: Master_TLS_Version: Master_public_key_path: Get_master_public_key:0 Network_Namespace:
show processlist View the status of replication related threads on the master-slave library
show master status View the main database information
show slave hosts Displays the list of slave libraries connected to the current master library
边栏推荐
- 不要小看了积分商城,它的作用可以很大
- Design of vga/lcd display controller system based on FPGA (Part 1)
- Cvpr2022 𞓜 thin domain adaptation
- postgresql之List
- June training (day 23) - dictionary tree
- Common sense knowledge points
- CVPR2022 | 可精简域适应
- 15 differences between MES in process and discrete manufacturing enterprises (Part 2)
- Detailed explanation of redis data types
- FPGA based analog I ² C protocol system design (medium)
猜你喜欢

CVPR 2022 - Interpretation of selected papers of meituan technical team

In the eyes of the universe, how to correctly care about counting East and West?
![[bitbear story collection] June MVP hero story | technology practice collision realm thinking](/img/b7/ca2f8cfb124e7c68da0293624911d1.png)
[bitbear story collection] June MVP hero story | technology practice collision realm thinking

A common defect management tool - Zen, which teaches you from installation to using the handle

leetcode. 12 --- integer to Roman numeral

Application of motion capture system in positioning and mapping of mobile robot in underground tunnel

Mots clés pour la cartographie es; Ajouter une requête par mot - clé à la requête term; Changer le type de mot - clé de cartographie

He is also a junior test engineer. Why is his salary high? The interview must be brilliant at these points

在宇宙的眼眸下,如何正确地关心东数西算?

IDEA 插件 Material Theme UI收费后的办法
随机推荐
Chaos mesh in Tencent -- Tencent mutual entertainment chaotic engineering practice
Qunhui synchronizes with alicloud OSS
R language plot visualization: use plot to visualize the training set and test set after data division, use different shape label representation, training set, test set, and display training and test
R language constructs regression model diagnosis (normality is invalid), performs variable transformation, and uses powertransform function in car package to perform box Cox transform to normality on
作为一名开发者,对你影响最深的书籍是哪一本?
CVPR2022 | 可精简域适应
update+catroot+c000021a+critical service failed+drivers+intelide+viaide+000000f
Record the range of data that MySQL update will lock
Is it safe to open an account for stock speculation in the top ten securities app rankings in China
Logstash introduction and simple case
A common defect management tool - Zen, which teaches you from installation to using the handle
Service visibility and observability
Redis consistency hash and hash slot
How to generate assembly code using clang in Intel syntax- How to generate assembly code with clang in Intel syntax?
Redis interview questions
Alibaba OSS object storage service
Stm32f1 and stm32cubeide programming examples -ws2812b full color LED driver (based on spi+dma)
As a developer, what is the most influential book for you?
证券账户理财安全吗??
June training (day 24) - segment tree