Incorrect key file for table './schoolpaddb/sys_ctrl.MYI'; try to repair it update sys_ctrl set sys_counter=sys_counter+1 where sys_key="cust"