ERR - fv_mysql_set_workBill: Error with MYSQL_OpenRecordset<select count(aw_deviceid) as cntID from af_alarmworkbill where aw_deviceid=90162307 and aw_pointid=90162321 and aw_begindate='2014-05-02 18:51:36'>, reason:Can't open file: 'af_alarmworkbill.MYI' (errno: 145)
解決方法,修復數據庫表:
1、檢查表
#./myisamchk /path/tableName
一般檢查表數據後,會提示使用什麼參數修復表數據
2、修復表數據
#myisamchk -q /path/tableName
#myisamachk -o /path/tableName
第一種方法速度快,修復普通問題;第二種速度慢,用來修復第一種方法不能修復的問題。
#cd /usr/local/mysql/bin
#./myisamchk -o /usr/local/mysql/var/tableUser/af_alarmworkbill