[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated c

解决办法:

1.mysql -u  root -p 登录mysql

2.show variables like '%sql_mode%';

3.set global sql_mode=(select replace(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

4.exit;

重启Navicat, 你会发现不会再有这个错误。

 

posted @ 2021-11-23 11:07  斯拉克  阅读(264)  评论(0编辑  收藏  举报