摘要:每个mongod实例都有自己的local数据库,用于存储复制过程中使用的数据和其他特定于实例的数据。local数据库对复制不可见:不复制local数据库中的集合。 local数据库中的集合: > use local switched to db local > show collections; o 阅读全文
Awesome Prometheus alerts
2022-12-05 16:13 by abce, 94 阅读, 0 推荐, 收藏,
摘要:Awesome Prometheus alerts | Collection of alerting rules (grep.to) 阅读全文
SQL Commands
2022-12-01 11:05 by abce, 31 阅读, 0 推荐, 收藏,
摘要:SQL Commands DDL(Data Definition Language) create drop alter tgruncate rename DML(Data Manipulation Language) insert update delete call Call a PL/SQL 阅读全文
MySQL ERROR 1227 (42000)错误处理
2022-11-30 18:35 by abce, 7766 阅读, 0 推荐, 收藏,
摘要:在还原数据库的时候,遇到以下报错: ERROR 1227 (42000) at line 18: Access denied; you need (at least one of) the SUPER, SYSTEM_VARIABLES_ADMIN or SESSION_VARIABLES_ADMI 阅读全文
MySQL双重密码是如何工作的
2022-11-28 17:23 by abce, 78 阅读, 0 推荐, 收藏,
摘要:假设先创建了一个用户: MySQL> create user abce@'%' identified by 'abce'; Query OK, 0 rows affected (0.01 sec) MySQL> grant all on abce.* to abce@'%'; Query OK, 0 阅读全文
mysql使用sys和performance_schema查看慢查询
2022-11-23 14:07 by abce, 196 阅读, 0 推荐, 收藏,
摘要:select schema_name, format_pico_time(total_latency) total_latency, exec_count, format_pico_time(total_latency/exec_count) latency_per_call, query_samp 阅读全文
sqlserver查看每个活跃会话使用了多少TempDB
2022-11-18 16:08 by abce, 111 阅读, 0 推荐, 收藏,
摘要:;WITH task_space_usage AS ( -- SUM alloc/delloc pages SELECT session_id, request_id, SUM(internal_objects_alloc_page_count) AS alloc_pages, SUM(intern 阅读全文
Debian 11上安装MongoDB 5
2022-11-18 08:53 by abce, 475 阅读, 0 推荐, 收藏,
摘要:关闭numa和transparent_hugepage $ sudo vi /etc/default/grub 添加 GRUB_CMDLINE_LINUX_DEFAULT="quiet numa=off transparent_hugepage=never" $ sudo grub-mkconfig 阅读全文
CentOS检查和禁用transparent hugepages
2022-11-17 19:49 by abce, 829 阅读, 0 推荐, 收藏,
摘要:1.查看系统当前使用的匿名透明大页 # grep -i AnonHugePages /proc/meminfo AnonHugePages: 1216512 kB 2.查看哪些应用在使用匿名透明大页 $ sudo awk '/AnonHugePages/ { if($2>4){print FILEN 阅读全文
sqlserver使用脚本迁移login和user的权限
2022-11-16 14:49 by abce, 257 阅读, 1 推荐, 收藏,
摘要:原文地址:http://udayarumilli.com/script-login-user-permissions-sql-server/ 1.实例级别的权限 --https://www.datavail.com/blog/scripting-out-the-logins-server-role- 阅读全文
浙公网安备 33010602011771号