[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause;
select VERSION(),@@sql_mode;
我的版本是5.7
sql_mode中包含only_full_group_by,此項意思是。。反正大概就是select的都要group by但是你沒有。所以報錯
解決方案
我的mysql是解壓版的并蝗,找到mysql解壓目錄,
image.png
找到my.ini文件加入這句話
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
把only_full_group_by這個值去掉了