代码改变世界

【MongoDB】日志报错not authorized on admin to execute command

2022-09-08 17:27 by abce, 2793 阅读, 0 推荐, 收藏,
摘要:安装mongodb exporter监控之后,mongodb的日志一直报错: {"t":{"$date":"2022-09-08T10:36:50.708+08:00"},"s":"I", "c":"ACCESS", "id":20736, "ctx":"conn32068","msg":"Chec 阅读全文

【MongoDB】Prometheus监控MongoDB

2022-09-06 13:42 by abce, 639 阅读, 0 推荐, 收藏,
摘要:这里只是写了如何安装mongodb_exporter。 其他部分参看:https://www.cnblogs.com/abclife/p/16659151.html 下载和安装 sudo wget https://github.com/percona/mongodb_exporter/release 阅读全文

【MySQL】Prometheus监控MySQL

2022-09-05 19:25 by abce, 621 阅读, 0 推荐, 收藏,
摘要:需要安装node_exporter+mysqld_exporter 1.下载 node_exporter wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.lin 阅读全文

【MySQL】Authentication plugin 'caching_sha2_password' reported error

2022-09-02 21:52 by abce, 2234 阅读, 1 推荐, 收藏,
摘要:使用MySQL8.0.30创建主从,启动从库的时候报错: Last_IO_Errno:2061 Last_IO_Error:error connecting to mater 'repl@xxxxx:3308' - retry-time:60 retries:1 massage:Authentica 阅读全文

【MySQL】MariaDB使用connect存储引擎访问SQLServer中的表

2022-08-31 11:04 by abce, 261 阅读, 0 推荐, 收藏,
摘要:借助connect存储引擎,Mariadb可以访问任何ODBC数据源。 本文是以CentOS7为例。安装的内容有:ODBC driver,unixODBC 1.下载ODBC对应linux的驱动下载地址: https://docs.microsoft.com/en-us/sql/connect/odb 阅读全文

【MySQL】DDL因Waiting for table metadata lock卡住

2022-08-30 08:22 by abce, 1002 阅读, 0 推荐, 收藏,
摘要:在数据库空闲时间,对表做碎片整理: alter table my_abc engine=innodb; 发现会话被阻塞,显示状态是: Waiting for table metadata lock 手动断开alter操作后,通过show processlist查看:​ > show processl 阅读全文

【PostgreSQL】PostgreSQL 15移除了Stats Collector

2022-08-28 23:11 by abce, 853 阅读, 1 推荐, 收藏,
摘要:试用即将发行的PostgreSQL 15的人会发现少了一个后台进程:​ postgres 1710 1 0 04:03 ? 00:00:00 /usr/pgsql-15/bin/postmaster -D /var/lib/pgsql/15/data/ postgres 1711 1710 0 04 阅读全文

【MySQL】MySQL8确认哪些参数在使用以及来源

2022-08-27 17:01 by abce, 86 阅读, 0 推荐, 收藏,
摘要:在MySQL8中,参数可能来自不同的地方,确认有效的参数来自于哪里: SELECT variable_name, variable_source AS source, variable_path, set_time, set_user AS USER, set_host FROM PERFORMAN 阅读全文

【MySQL】MySQL8持久化系统变量

2022-08-27 16:54 by abce, 280 阅读, 0 推荐, 收藏,
摘要:set命令可以用于将某些全局系统变量持久化到数据目录中的mysqld-auto.cnf文件中,以影响后续启动的服务器操作。reset persist从mysqld-auto.cnf中删除持久设置。 在运行时持久化全局系统变量的能力使server配置能够在其启动时保持不变。尽管许多系统变量可以在启动时 阅读全文

【MySQL】mysqldump从所有数据库备份中还原某个指定的库

2022-08-25 13:08 by abce, 677 阅读, 0 推荐, 收藏,
摘要:有时候,需要还原某个特定的数据库,但是在备份的时候却又备份了所有的数据库。这时,就可以通过参数--one-database选项来还原指定的数据库。 mysql -uroot -p[pwd] --one-database [db1] < [/path/backup.sql] 提示:如果在备份的时候,备 阅读全文
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 124 下一页