MySQL事务和锁监控
information_schema
是 MySQL 提供的一个系统数据库,用于存储有关数据库结构和元数据的信息
-- 显示当前所有活跃的 innodb 事务信息
select * from information_schema.innodb_trx;
About 11 min
information_schema
是 MySQL 提供的一个系统数据库,用于存储有关数据库结构和元数据的信息
-- 显示当前所有活跃的 innodb 事务信息
select * from information_schema.innodb_trx;
使用MySQL内部命令查看 Binlog 文件基本信息:
show binary logs; # 管理和监控所有的 binlog 文件, 等价于show master logs;
show master status; # 仅显示当前正在使用的 binlog 文件及其状态信息
show binlog events;
show binlog events in 'mysql-binlog.000001'