![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
查询SQL
文章平均质量分 55
chenyaohui3
这个作者很懒,什么都没留下…
展开
-
pt-online存在的问题记录
pt-online存在的问题:1、Error copying rows from kf.chatjs_statis to kf._chatjs_statis_new: Threads_running=51 exceeds its critical threshold 50提示为Threads_running超过了警告的阀值,而官方默认值是50,需要手动增加值得大小(添加参数 --critical-load="Threads_running=200" )2、删除触发器mysql> DROP原创 2021-09-16 09:49:43 · 471 阅读 · 0 评论 -
pgsql关于自增id对比mysql
-- Mysqlcreate table tb(id int not null PRIMARY KEY auto_increment,xname varchar(20));select * from tb;insert into tb(xname) values('a');insert into tb(xname) values('b');select * from tb;insert into tb(id,xname) values(4,'d');select * from tb;i原创 2021-08-18 16:41:31 · 252 阅读 · 0 评论 -
postres表对应目录结构路径
对于postgres表的存储,大家很多搞不清楚,它不像mysql哪样直观....base 默认表空间目录,建立的表格储存在此目录中.每个 database 会在 base 目录下有一个子目录# ll -h /data/pgsql/pgdata/basedrwx------. 2 postgres postgres 8192 12月 14 14:53 1drwx------. 2 postgres postgres 8192 12月 14 14:53 13213drwx------. 2 post原创 2021-01-20 14:36:16 · 112 阅读 · 0 评论 -
postgres 库表索引表空间等等的大小查看
postgres 库表索引表空间等等的大小查看-- 查询所有数据库大小select datname, pg_size_pretty (pg_database_size(datname)) AS size from pg_database;-- 查询单个数据库大小select pg_size_pretty(pg_database_size('postgres')) as size;-- 查询所有表大小select relname, pg_size_pretty(pg_relation_siz.原创 2021-01-19 14:51:17 · 180 阅读 · 0 评论 -
MySQL查看库和表容量大小方法
MySQL查看库和表容量大小方法-- 1.查看所有数据库容量大小SELECT table_schema AS '数据库',sum(table_rows) AS '记录数',sum(TRUNCATE (data_length/1024/1024,2)) AS '数据容量(MB)',sum(TRUNCATE (index_length/1024/1024,2)) AS '索引容量(MB)'FROM information_schema.tables GROUP BY table_schema ORD原创 2020-05-12 15:15:03 · 298 阅读 · 0 评论