- 博客(6)
- 收藏
- 关注
原创 promethues+grafana安装监控服务器和mysql数据库
2、创建安装路径并解压安装包(路径自定) mkdir /data/software/prometheus mv prometheus-2.34.0.linux-amd64.tar.gz cd /data/software/prometheus tar -xvf prometheus-2.34.0.linux-amd64.tar.gz mv prometheus-2.34.0.linux-amd6...
2022-03-30 18:15:04
1402
原创 docker容器运行状态监控
此脚本用于监控容器运行状态,并将异常容器通过钉钉端报警!!! 1、编写监控脚本 [root@localhost ~]# vim containerState-monitor.sh !/bin/bash ########################################################## # 监控容器运行状态,异常通过钉钉端报警脚本!!! # ##############################################.
2022-03-16 17:35:44
2325
原创 mysql备份多个数据库脚本
此脚本是用于备份以datawarehouse_20开头的数据库,根据自身情况修改即可!!! #!/bin/bash ############################################### # 备份datawarehouse日期库脚本!!! # ############################################### #数据库密码 passwd=xxx #取出需要备份的以datawarehouse_20开头的数据库 datawareh.
2022-03-16 12:33:33
737
原创 mysql查询数据量
所有查询都需要进入到information_schema库进行操作 进入information_schema库命令 mysql> use information_schema; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed 1、查询数据库数据总量
2022-02-26 11:18:54
6574
原创 mysql 性能分析之 profiling
1、首先查看此功能有没有开启,默认是OFF关闭状态 mysql> show variables like 'profiling%'; 2、开启profiling mysql> set profiling=1; #关闭profiling mysql> set profiling=0; 3、列出最近执行的SQL情况,默认15条 mysql> show profiles; +----------+------------+----------------------..
2022-02-16 16:44:06
1366
原创 关于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
1456
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅