cactiez重启后有图不出数据

cactiez重启后有图不出数据。
运行tail -f /var/log/mysqld.log
提示报错,大概是索引出问题了,需要修复
[ERROR] /usr/libexec/mysqld: Table './cacti/poller_output' is marked as crashed and should be repaired
myisamchk -c -r /var/lib/mysql/cacti/poller_output.MYI
 
/usr/libexec/mysqld: Table './cacti/syslog_incoming' is marked as crashed and should be repaired
myisamchk -c -r /var/lib/mysql/cacti/syslog_incoming.MYI
 
usrlibexecmysqld Table '.cacti/syslog_statistics' is marked as crashed and should be repaired
则需要运行myisamchk -c -r /var/lib/mysql/cacti/syslog_statistics.MYI
于此类推。
 
设置开机自动运行
echo "myisamchk -c -r /var/lib/mysql/cacti/*.MYI" >> /etc/rc.local

你可能感兴趣的:(1)