我在mysql中遇到错误
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'returntr_prod.tbl_customer_pod_uploads.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
为此我发现我需要使用更改 sql 模式
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
我已经在 mysql 终端中执行了上述操作,执行后建议重新启动 mysql 服务。所以我已经从mysql终端到ubuntu终端并尝试执行
sudo restart mysql
我收到一条错误消息sudo: restart: command not found
。有人可以帮我理解为什么我会收到这个错误。