gpt4 book ai didi

mysql - Azure MySQL 服务器允许禁用 'sql_mode=only_full_group_by'

转载 作者:行者123 更新时间:2023-12-02 22:56:45 26 4
gpt4 key购买 nike

我有一个在 node.js 上运行并查询 Azure MySQL 服务器上托管的数据库的应用程序,我在使用 group by 进行查询期间遇到了错误消息

"...this is incompatible with sql_mode=only_full_group_by".

随后,我尝试使用

更改我的 SQL 用户权限

设置全局 sql_mode=(选择替换(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

但收到错误消息:

Error Code: 1227. Access denied; you need (at least one of) the SUPER or SYSTEM_VARIABLES_ADMIN privilege(s) for this operation

最佳答案

您可以通过 Azure 门户中的“服务器参数”执行此操作。您可以在那里获得 sql_mode 选项。只需更改并保存即可

https://learn.microsoft.com/en-us/azure/mysql/howto-server-parameters

关于mysql - Azure MySQL 服务器允许禁用 'sql_mode=only_full_group_by',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59807505/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com