MySQL: “The SELECT would examine more than MAX_JOIN_SIZE rows”

后端 未结 6 1971
长情又很酷
长情又很酷 2020-12-01 18:36

I am using PHP and MySQL. In my program there is a select query involving joins. When I run it on localhost it\'s working fine but when I upload it on my server and try to e

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 19:26

    Try running as a query previous executing your select:

    SET SQL_BIG_SELECTS=1
    

    Is this really executing over a huge dataset? If not this should be solved in a different way.

提交回复
热议问题