MySQL: #126 - Incorrect key file for table

前端 未结 17 1942
臣服心动
臣服心动 2020-11-29 02:18

I got the following error from a MySQL query.

#126 - Incorrect key file for table

I have not even declared a key for this table, but I do have i

17条回答
  •  心在旅途
    2020-11-29 02:44

    mysql> set global sql_slave_skip_counter=1; start slave; show slave status\G
    

    Then got error exists :

     Error 'Table './openx/f_scraper_banner_details' is marked as crashed and should be repaired' on query. Default database: 'openx'. Query: 'INSERT INTO f_scraper_banner_details(job_details_id, ad_id, client_id, zone_id, affiliateid, comments, pct_to_report, publisher_currency, sanity_check_enabled, status, error_code, report_date) VALUES (10274859, 321264, 0, 31926, 0, '', -1, 'USD', 1, 'FAILURE', 'INACTIVE_BANNER', '2016-06-28 04:00:00')'
    
     mysql> repair table f_scraper_banner_details;
    

    This worked for me

提交回复
热议问题