搜索栏搜索报数据库错误

问题咨询 · z1847961679 · 于 4年前 发布 · 1373 次阅读

按照小白文档安装好,2.3.7,照教程安装后,什么都没动过,未安装manggoDb

搜索栏搜索报数据库错误

SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'fecmall.full_search_product.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by The SQL being executed was: SELECT * FROM full_search_product WHERE ((name LIKE '%1%') OR (description LIKE '%1%')) AND (status=1) AND (lang='en') GROUP BY spu ORDER BY score DESC LIMIT 30

共收到 5 条回复
1楼 已删除.
2楼 已删除.
Fecmall#34年前 0 个赞

1.传错了就改帖子,把错误信息写道标题里面

2.一个问题一个帖子

3.发帖之前先搜贴

d157917936#44年前 0 个赞

搜索模式的配置问题, 直接 在对应数据库里面执行 下面语句 就正常了 SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

Fecmall#54年前 0 个赞

@d157917936 #4楼 mysql-5.7的问题

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics