mysql> select * from information_schema.processlist as p where p.command = ‘Binlog Dump‘;
或
mysql> show slave hosts;(此方法需要在从服务启动时指定--report-host=HOSTNAME选项,此处HOSTNAME为任意名称。)
时间: 2024-10-15 04:48:45
mysql> select * from information_schema.processlist as p where p.command = ‘Binlog Dump‘;
或
mysql> show slave hosts;(此方法需要在从服务启动时指定--report-host=HOSTNAME选项,此处HOSTNAME为任意名称。)