上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 70 下一页
摘要: 1.postgresql postgres-# ; ERROR: could not open extension control file "/usr/pgsql-10/share/extension/postgis_topology.control": No such file or direc 阅读全文
posted @ 2021-04-08 20:54 littlevigra 阅读(551) 评论(1) 推荐(0)
摘要: 1. 在容器里查看 / $ ip link show eth0 531: eth0@if532: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP link/ether 02:42:ac:12:00:06 阅读全文
posted @ 2021-03-28 10:36 littlevigra 阅读(260) 评论(0) 推荐(0)
摘要: 1. 创建用户和授权 CREATE USER chentest WITH PASSWORD ' 123456' VALID UNTIL '2020-04-28'; ALTER USER chenrenxun CONNECTION LIMIT 20 login; GRANT CONNECT ON DA 阅读全文
posted @ 2021-03-18 10:36 littlevigra 阅读(3205) 评论(0) 推荐(0)
摘要: 1. yum install pg_repack10 -y 2. yum install pg_qualstats10 阅读全文
posted @ 2021-03-17 10:28 littlevigra 阅读(115) 评论(0) 推荐(0)
摘要: 1.过滤出执行时间极大SQL语句(maatkit的digest工具,按照执行时间排序) mysqlbinlog binlog.xxxxxxx |mk-query-digest –type binlog –nofor-explain在测试机上执行筛选的语句,并没有发现有任何的性能异常 https:// 阅读全文
posted @ 2021-03-15 21:50 littlevigra 阅读(138) 评论(0) 推荐(0)
摘要: 1. pt-ioprofile功能:方便定位IO问题,可通过IO吞吐量来定位。 原理:pt-ioprofile的原理是对某个pid附加一个strace进程进行IO分析。 2. [root@node3 bin]# ./pt-ioprofile 通过这个报告我们可以看到,哪个文件占用IO的时间比较多,跟 阅读全文
posted @ 2021-03-15 11:45 littlevigra 阅读(142) 评论(0) 推荐(0)
摘要: 1. 完全备份 创建用于备份恢复的用户 pxb 并赋予权限 mysql> create user pxb@'localhost' identified by '123456'; mysql> grant reload,process,lock tables,replication client on 阅读全文
posted @ 2021-03-14 00:02 littlevigra 阅读(141) 评论(4) 推荐(0)
摘要: 1.技术点 完成业务功能,要懂基本的Sql语句。 做性能优化,要懂索引,懂引擎。 做分库分表,要懂主从,懂读写分离。 做安全,要懂权限,懂备份,懂日志。 做云数据库,要懂源码,懂瓶颈。 https://zhuanlan.zhihu.com/p/352066490 2.进行性能分析。对于 MySQL 阅读全文
posted @ 2021-03-13 15:54 littlevigra 阅读(81) 评论(0) 推荐(0)
摘要: 1. 得到具体的时间段 133.228.58.10 12/Mar/2021:17:37:46 +0800] 1011022 1253594651655540736] "POST /api/teapi/queue/impexp/expStatus HTTP/1.1" 0.072 406 200 "ht 阅读全文
posted @ 2021-03-12 22:36 littlevigra 阅读(308) 评论(0) 推荐(0)
摘要: 1. 利用max(case when then) 聚合函数,max,取最大值 (case when course = '语文' then score else 0 end) 判断 as 语文 别名作为列名 2.max(when course='语文' then score else 0 end) m 阅读全文
posted @ 2021-03-11 21:31 littlevigra 阅读(3200) 评论(6) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 70 下一页