- 博客(6)
- 收藏
- 关注
原创 promethues+grafana安装监控服务器和mysql数据库
2、创建安装路径并解压安装包(路径自定)mkdir /data/software/prometheusmv prometheus-2.34.0.linux-amd64.tar.gzcd /data/software/prometheustar -xvf prometheus-2.34.0.linux-amd64.tar.gzmv prometheus-2.34.0.linux-amd6...
2022-03-30 18:15:04
1316
原创 docker容器运行状态监控
此脚本用于监控容器运行状态,并将异常容器通过钉钉端报警!!!1、编写监控脚本[root@localhost ~]# vim containerState-monitor.sh!/bin/bash########################################################### 监控容器运行状态,异常通过钉钉端报警脚本!!! ###############################################.
2022-03-16 17:35:44
2099
原创 mysql备份多个数据库脚本
此脚本是用于备份以datawarehouse_20开头的数据库,根据自身情况修改即可!!!#!/bin/bash################################################ 备份datawarehouse日期库脚本!!! #################################################数据库密码passwd=xxx#取出需要备份的以datawarehouse_20开头的数据库datawareh.
2022-03-16 12:33:33
649
原创 mysql查询数据量
所有查询都需要进入到information_schema库进行操作进入information_schema库命令mysql> use information_schema;Reading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -ADatabase changed1、查询数据库数据总量
2022-02-26 11:18:54
6390
原创 mysql 性能分析之 profiling
1、首先查看此功能有没有开启,默认是OFF关闭状态mysql> show variables like 'profiling%';2、开启profilingmysql> set profiling=1;#关闭profilingmysql> set profiling=0;3、列出最近执行的SQL情况,默认15条mysql> show profiles;+----------+------------+----------------------..
2022-02-16 16:44:06
1264
原创 关于mysql8.0.27安装后mysqldump不可用解决方法
源码安装完mysql后,使用mysqldump命令,报错如下:原因: 这是由于缺少mysql环境变量所导致的解决方法:1.添加环境变量vim /etc/profile在最后一行添加:export PATH=/mysql安装路径/bin:$PATH#加载环境变量source /etc/profile...
2022-02-15 15:58:13
1320
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人