1 使用系统定义的变量 语法:
SELECT @@server_id
2.使用SHOW VARIABLES命令
show variables like 'server_id';
3.查看Mater数据有哪些slave,使用命令:
select * from information_schema.processlist as p where p.command = 'Binlog Dump';
1 使用系统定义的变量 语法:
SELECT @@server_id
2.使用SHOW VARIABLES命令
show variables like 'server_id';
3.查看Mater数据有哪些slave,使用命令:
select * from information_schema.processlist as p where p.command = 'Binlog Dump';
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。