-
show variables like '%binlog%' --查看binlog的一些配置信息
-
show variables like '%log_bin%' --查看到binlog日志状态
-
show binlog events; --只查看第一个 binlog 文件的内容
-
show binlog events in 'mysql-bin.000002'; -- 查看指定 binlog 文件的内容
-
show binary logs; --获取 binlog 文件列表
-
show master status; -- 查看当前正在写入的 binlog 文件
-
show variables like '%max_connections%'; --查看mysql最大连接数
-
show global status like 'Max_used_connections'; --产看当前连接数量