zabbix分区分表

验证脚本运行
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; 

猜你喜欢

转载自www.cnblogs.com/kylingx/p/12230872.html