show master logs;
+---------------+------------+
| Log_name | File_size |
+---------------+------------+
| binlog.000011 | 1073742011 |
| binlog.000012 | 1073742164 |
| binlog.000013 | 1073742004 |
| binlog.000014 | 837378217 |
+---------------+------------+
show slave status\G;
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 10.10.10.11
Master_User: repli
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: binlog.000014
Read_Master_Log_Pos: 837395591
Relay_Log_File: relaylog.000037
Relay_Log_Pos: 837395734
Relay_Master_Log_File: binlog.000014
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB: mysql,test,information_schema
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: 837395591
Relay_Log_Space: 837395923
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
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
Mysql provides a view of all information pertaining to the status of replication with SHOW SLAVE STATUS
The \G statement terminator for this statement is important for readability, \G will diplay the output of any SQL statement vertically in the mysql client
SHOW SLAVE STATUS displays information about all aspects of replication for the given slave host.Reading the output earlier,you will be able to see what master server the slave is replicating from
The most important components shown in SHOW SLAVE STATUS pertain to files and positions , along with the SQL AND I/O slave thread.These two threads perform the physical work of writing and reading the relay log (the I/0 thread) and applying the new events on the slave(the SQL thread)
http://dev.mysql.com/doc/refman/5.5/en/show-slave-status.html
http://www.alixixi.com/program/a/2011042069789.shtml
分享到:
相关推荐
为了提高应用性能,尤其是MySQL数据库应用,优化SQL语句显得至关重要。本部分将深入探讨如何优化各种SQL语句,包括数据的读写操作、SQL操作的幕后开销以及数据库监控等特定场景中的操作。 首先,我们来看如何优化...
信息安全_数据安全_Automation_vs_Human_Eyes:Optimizing_Hu 边界防御 应用审计 web安全 云安全 用户隐私
本文《Participation_of_an_Energy_Hub_in_Electricity_and_Heat_Distribution_Markets》深入探讨了能源枢纽在电力和热力分配市场中的参与方式。文章分析了能源枢纽如何通过集成多种能源转换技术,实现对电力和热力...
### 操作系统—线程:优化SMP上基于线程的MPI执行 #### 摘要与背景 本文深入探讨了在共享内存多处理器(SMP)集群上使用线程来执行消息传递接口(MPI)程序的方法,并研究了其设计与实现。作者通过实验证明,在多...
在“Shaping the Glitch: Optimizing Voltage Fault Injection Attacks”这篇论文中,作者Claudio Bozzato、Riccardo Focardi和Francesco Palmarini提出了一种新的电压故障注入技术,利用现成且低成本的设备生成完全...
当获取到一个 SQL 的执行概况后,你会看到一系列的状态(Status)和对应的持续时间(Duration)。这些状态按顺序排列,反映了 SQL 执行的整个生命周期,包括但不限于: - **starting**:表示 SQL 开始执行。 - **...
### SQL Server性能优化十大技巧详解 #### 引言 在SQL Server环境中实现高效稳定的性能是一项挑战性的任务。尽管关于性能优化的一般性建议随处可见,但针对特定问题的深入指导及如何将这些知识应用到实际环境中的...
MySQL Stored Procedure Programming Advance Praise for MySQL Stored Procedure Programming Preface Objectives of This Book Structure of This Book What This Book Does Not Cover Conventions ...
《Pro Oracle SQL》一书的第10章深入探讨了SQL优化,特别是10.2节,重点关注如何测试执行计划,这是SQL性能调优的关键环节。在这个部分,作者旨在帮助读者理解如何有效地评估和改进SQL查询的性能,以提高数据库系统...
例如,使用`SHOW PROFILES`和`SHOW STATUS`命令可以帮助分析SQL执行效率;配置文件中的参数调整则可以针对特定负载进行优化设置。 #### 知识点七:高可用性与灾难恢复 为了保证服务连续性和数据安全,实现MySQL的...
This guide explores how to tune and optimize the MySQL Cluster database to handle diverse workload requirements. It discusses data access patterns and how to build distribution awareness into ...
11. **第十一章:Optimizing SQL Server** - 分析SQL Server 2008性能优化的各种技术,如查询优化、索引管理等。 12. **第十二章:SQL Server High Availability** - 介绍高可用性的概念和技术,如故障转移集群、...
- **Subprograms**: Introduction to procedures and functions, which can be called from other PL/SQL blocks or SQL statements. #### 2. Using SQL*Plus and JDeveloper This chapter focuses on the tools ...
Topics such as migrating to MySQL 8, MySQL benchmarking, achieving high performance by implementing the indexing techniques, and optimizing your queries are covered in this book. You will also learn ...
在研究论文《PGWinFunc: Optimizing Window Aggregate Functions in PostgreSQL and its application for trajectory data》中,重点介绍了如何在PostgreSQL数据库中优化窗口聚合函数,并展示了其在轨迹数据分析方面...
Ensure high performance and high availability of your MySQL solution using effective replication and backup techniques A comprehensive guide to performing query optimization, security and a whole host...
Designing a Database Server Infrastructure by Using Microsoft SQL Server 2005 70-444 PRO: Optimizing and Maintaining a Database Administration Solution by Using Microsoft SQL Server 2005 70-...
From there, you will learn how to write Transact-SQL statements, execute simple and complex database queries, handle system administration and security, and use the powerful analysis and BI tools....
Designing a Database Server Infrastructure by Using Microsoft SQL Server 2005 70-444 PRO: Optimizing and Maintaining a Database Administration Solution by Using Microsoft SQL Server 2005 70-445...