MySQL incorrect key file for tmp table when making multiple joins

后端 未结 11 1246
轻奢々
轻奢々 2020-11-27 17:01

I don\'t come here for help often but I am pretty frustrated by this and I am hoping someone has encountered it before.

Whenever I try to fetch records from a table

11条回答
  •  萌比男神i
    2020-11-27 17:30

    run this

    REPAIR TABLE `core_username`,`core_site`,`core_person`;
    

    or do this:

    select * from (
     SELECT * FROM `core_username`
     INNER JOIN `core_person` ON (`core_username`.`person_id` = `core_person`.`id`)
     INNER JOIN `core_site` ON (`core_username`.`site_id` = `core_site`.`id`)
     LIMIT 1)
    ORDER BY `name` ASC
    

提交回复
热议问题