Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I accidentally enabled ONLY_FULL_GROUP_BY mode like this:

(我不小心启用了ONLY_FULL_GROUP_BY模式,如下所示:)

SET sql_mode = 'ONLY_FULL_GROUP_BY';

How do I disable it?

(如何禁用它?)

  ask by ZviBar translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
313 views
Welcome To Ask or Share your Answers For Others

1 Answer

Solution 1: Remove ONLY_FULL_GROUP_BY from mysql console

(解决方案1:从MySQL控制台删除ONLY_FULL_GROUP_BY)

mysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

you can read more here

(你可以在这里阅读更多)

Solution 2: Remove ONLY_FULL_GROUP_BY from phpmyadmin

(解决方案2:从phpmyadmin中删除ONLY_FULL_GROUP_BY)

  • Open phpmyadmin & select localhost

    (打开phpmyadmin并选择localhost)

  • Click on menu Variables & scroll down for sql mode

    (单击菜单变量并向下滚动至sql模式)

  • Click on edit button to change the values & remove ONLY_FULL_GROUP_BY & click on save.

    (单击编辑按钮以更改值并删除ONLY_FULL_GROUP_BY ,然后单击保存。) 在此处输入图片说明


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...