• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase
您的位置:首页 > 数据库 >Mysql > 关于pt-heartbeat(percona toolkit)的实例代码

关于pt-heartbeat(percona toolkit)的实例代码

作者:匿名 字体:[增加 减小] 来源:互联网 时间:2018-12-05

匿名通过本文主要向大家介绍了pt-heartbeat,toolkit,percona等相关知识,希望本文的分享对您有所帮助
mysql> show slave status\G*************************** 1. row ***************************Slave_IO_State: Waiting for master to send event Master_Host: 172.16.16.35Master_User: root Master_Port: 3306Connect_Retry: 60Master_Log_File: mysql-bin.000016Read_Master_Log_Pos: 299786938Relay_Log_File: mxqmongodb2-relay-bin.000032Relay_Log_Pos: 299787151Relay_Master_Log_File: mysql-bin.000016Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0Last_Error: Skip_Counter: 0Exec_Master_Log_Pos: 299786938Relay_Log_Space: 299787451Until_Condition: None Until_Log_File: Until_Log_Pos: 0Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0Last_IO_Error: Last_SQL_Errno: 0Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 353306Master_UUID: 806ede0c-357e-11e7-9719-00505693235d Master_Info_File: mysql.slave_master_info SQL_Delay: 0SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates Master_Retry_Count: 86400Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: 806ede0c-357e-11e7-9719-00505693235d:666-330347Executed_Gtid_Set: 6a4ab82c-4029-11e7-86b0-00505693235d:1-3, 806ede0c-357e-11e7-9719-00505693235d:1-330347Auto_Position: 1Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version:1 row in set (0.00 sec)

mysql> desc heartbeat;+-----------------------+---------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------------------+---------------------+------+-----+---------+-------+ | ts | varchar(26) | NO | | NULL | | | server_id | int(10) unsigned | NO | PRI | NULL | | | file | varchar(255) | YES | | NULL | | | position | bigint(20) unsigned | YES | | NULL | | | relay_master_log_file | varchar(255) | YES | | NULL | | | exec_master_log_pos | bigint(20) unsigned | YES | | NULL | | +-----------------------+---------------------+------+-----+---------+-------+6 rows in set (0.01 sec) mysql> select * from heartbeat\G*************************** 1. row ***************************ts: 2017-06-23T09:27:49.001580server_id: 353306file: mysql-bin.000016position: 299837221relay_master_log_file: NULL exec_master_log_pos: NULL1 row in set (0.00 sec)

mysql> stop slave sql_thread; Query OK, 0 rows affected (0.03 sec)

分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 关于pt-heartbeat(percona toolkit)的实例代码

相关文章

  • 2017-05-11php利用GD库生成缩略图示例
  • 2018-12-05MySQL配置文件无法修改的解决方案详解(Win10)
  • 2018-12-05MySQL从MyISAM转换成InnoDB错误与常用解决办法
  • 2018-12-05mysql5.7.13在win10 64位系统下的安装配置方法分享
  • 2017-05-11mysql_fetch_row()与mysql_fetch_array()的使用介绍
  • 2017-05-11正确理解Mysql中的列索引和多列索引
  • 2018-12-05Access清空表后让编号复位
  • 2018-12-05win下远程连接linux下mysql
  • 2018-12-05多列复合索引的使用 绕过微软sql server的一个缺陷
  • 2018-12-05提升SQL Server速度 整理索引碎片

文章分类

  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase

最近更新的内容

    • 详解MySQL数据库中有关source命令
    • 关于视图更新注意要点汇总
    • MySQL数据库事务隔离级别介绍(Transaction Isolation Level)
    • mysql中的引擎
    • Mysql(MyISAM)的读写互斥锁问题的解决方法
    • windows下mysql 5.7中修改编码为utf-8应该如何操作
    • mysqlhotcopy 正则使用小技巧
    • sql 中 case when 语法使用方法
    • sqlserver中如何查询出连续日期记录的代码
    • MySQL如何添加索引的具体介绍

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有