1.使用navicat修改
2.进入命令行界面(F6)
3.输入:SELECT @@GLOBAL.sql_mode;
4.结果:ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
5.
6.然后我们来修改sql_mode
7.输入:set GLOBAL sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION ';
8.
9.再运行你的sql:
10.SELECT
11. id,ip
12.FROM
13. ip_meta_backup
14.GROUP BY
15. ip
16.HAVING
17. count(ip) > 1
18.*****恭喜你,成功了*****