lunix下设置sql_moble group by

netstat -ntlp 查看所有进程

需要在安装mysql目录下的mysql.conf.d/mysqld.cnf中设置

sql_model = 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如果有的话,建议直接删除即可,然后重启mysql服务,service mysql restart

lunix下设置sql_moble group by

上一篇:【学习笔记】Mysql的一次查询的过程


下一篇:Cannot access nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) in offline mode and the artifact com.