分类经常出错

2016-07-07 15:46 来源:www.chinab4c.com 作者:ecshop专家

MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT g.goods_id, g.goods_name, g.goods_name_style, g.market_price, g.shop_price AS org_price, g.promote_price, IFNULL(mp.user_price, g.shop_price * '1') AS shop_price, promote_start_date, promote_end_date, g.goods_brief, g.goods_thumb, goods_img, b.brand_name FROM `ecshop`.`ecs_goods` AS g LEFT JOIN `ecshop`.`ecs_brand` AS b ON b.brand_id = g.brand_id LEFT JOIN `ecshop`.`ecs_member_price` AS mp ON mp.goods_id = g.goods_id AND mp.user_rank = '0' WHERE g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_delete = 0 AND is_best = 1 AND (g.cat_id IN ('7','9','8') OR g.goods_id IN ('') ) ORDER BY g.sort_order, g.last_update DESC LIMIT 5 ) [2] => Array ( [error] => Out of memory (Needed 33554402 bytes) ) [3] => Array ( [errno] => 5 ) )

回答:
把mysql的缓存搞小一点,修改配置文件
或者把你的机器内存搞大一点

内存4G了 你说的mysql缓存弄小是怎么设置 请教?