zabbix分区分表

时间:2020-01-23 17:32:04   收藏:0   阅读:112
验证脚本运行
mysql -uzabbix -pzabbix zabbix
show create table history\G;
运行此脚本的时候,Zabbix库有存量数据,此时,建议清空想表的数据,然后再执行此脚本
use zabbix; 
truncate table history; 
optimize table history; 
truncate table history_str; 
optimize table history_str; 
truncate table history_uint; 
optimize table history_uint; 
truncate table trends; 
optimize table trends; 
truncate table trends_uint; 
optimize table trends_uint; 

原文:https://www.cnblogs.com/kylingx/p/12230872.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!