
mysql check
数据库人生
专注于数据库
PostgreSQL;Oracle 11G OCA、OCP;OceanBase V2 OBCA、OBCP
展开
-
mysql 集群、数据库、分区表、非分区表的大小
mysql 5.7mysql 8.0原创 2020-08-12 17:21:36 · 1161 阅读 · 0 评论 -
mysql 查找没有主键(primary key)的表
select table_schema, table_name from information_schema.tables where 1=1 and table_name not in ( select distinct table_name from information_schema.columns where 1=1 and column_key = "PRI") and table_schema not in (原创 2020-07-02 08:59:40 · 1668 阅读 · 0 评论 -
MySQL 锁的监控
os: centos 7.4.1708db: mysql 8.0.19任何数据库都需要对锁进行监控,尤其是长时间的锁,mysql 也不例外。mysql 通过 show full processlist、show engine innodb status 可以查看到。其实通过 information_schema.innodb_trx 更容易监控到锁的情况。版本[root@node2 ~...原创 2020-03-28 18:23:09 · 1711 阅读 · 0 评论 -
mysql group replication 查看集群状态
os: centos 7.4db: mysql 5.8# /usr/local/mysql/bin/mysql -h127.0.0.1 -P3306 -uroot -pdbma@0352 -e"select * from performance_schema.replication_group_members;"参考:原创 2019-12-09 17:38:13 · 1958 阅读 · 0 评论