查表个数 SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES GROUP BY table_schema;
查触发器个数 SELECT trigger_schema,count(1) FROM information_schema.TRIGGERS GROUP BY trigger_schema;
查询数据库中的事件 select * from information_schema.EVENTS
查看函数个数 select specific_schema,count(distinct specific_name) from information_schema.PARAMETERS where routine_type=‘PROCEDURE’ group by specific_schema;
查询数据库表中的条目数 SELECT TABLE_NAME,TABLE_ROWS,TABLE_SCHEMA FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA in(‘zhihui’,‘mi’,‘jingyin’);
本文描述了mysql-cluster集群sql节点高可用keepalived的故障处理过程,包括故障发生时间、故障描述、故障分析等内容。根据keepalived的日志分析,发现bogus VRRP packet received on eth0 !!!等错误信息,进而导致vip地址失效,使得mysql-cluster的api无法访问。针对这个问题,本文提供了相应的解决方案。 ...
[详细]