时间:2021-07-01 10:21:17 帮助过:30人阅读
进入mysql
use "cacti"
select count(*) from poller_output;
mysql> truncate table poller_output;
mysql> select count(*) from poller_output;
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)
或:
# REPAIR TABLE修复数据表
mysql> REPAIR TABLE poller_item;
+-------------------+--------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+-------------------+--------+----------+----------+
| cacti.poller_item | repair | status | OK |
+-------------------+--------+----------+----------+
1 row in set (0.02 sec)
mysql>
修复成功。
如果修复失败,可以尝试用USE_FRM选项,例:
mysql> REPAIR TABLE poller_item USE_FRM;
Cacti 不出图,后台提示数据库inter 表时出错。
标签:cacti mysql 1062