摘要: 服务器准备: 主机:10.0.0.108 操作系统:Centos7.6-centos7.9 规格:4Gib/4vCPU 1、服务器环境准备 配置主机名: [root@docker ~]# hostnamectl set-hostname docker && bash 关闭防火墙 [root@dock 阅读全文
posted @ 2021-11-10 15:14 %小二 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1、进入information_schema 数据库(存放了其他的数据库的信息) use information_schema; 2 查询某个数据库的大小例如zabbix select concat(round(sum(data_length/1024/1024),2),'MB') as data  阅读全文
posted @ 2021-10-09 16:54 %小二 阅读(934) 评论(0) 推荐(0) 编辑
摘要: 查看表碎片大小 (1)查看某个表的碎片大小 mysql> SHOW TABLE STATUS LIKE '表名'; 结果中’Data_free’列的值就是碎片大小 (2)列出所有已经产生碎片的表 mysql> select table_schema db, table_name, data_free 阅读全文
posted @ 2021-10-09 16:26 %小二 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1、下载redis 5.0版压缩包 链接地址:https://github.com/tporadowski/redis/releases 借鉴地址:https://www.runoob.com/redis/redis-install.html 2、解压到相应目录下 3、修改配置文件redis.win 阅读全文
posted @ 2021-09-09 11:15 %小二 阅读(1288) 评论(0) 推荐(0) 编辑