编程大白的博客

MySQL报错:this is incompatible with sql_mode=only_full_group_by

mysql 5.7报错

which is not functionally dependent on columns in GROUP BY clause; 
this is incompatible with sql_mode=only_full_group_by

解决办法

修改配置文件 my.cnf

[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

参考文章

  • which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mod
« Previous

Docker五部曲之一:容器术语介绍

Next »

无法解析服务器的名称或地址/Wsl/0x80072eff/win10 WSL2问题解决Wsl 0x800701bc/Wsl:0x80041002

© 2024 编程大白的博客. Generated with Hugo and Mainroad theme.