SET tidb_mem_quota_query = 8 << 30; 不生效 show config where name like '%mem_quota_query%'

tidb_mem_quota_query 是系统变量吧,用show variables like ‘%XXXXXXXX%’ 查看试试