When solving MySQL execution group by statement this is incompatible with sql_mode = only_full_group_by error

problem:

When addressing implementation group by statement this is incompatible with sql_mode = only_full_group_by error,

the reason:

This error occurs problems mysql 5.7 version and above will occur:
 mysql 5.7 version sql default configuration is: sql_mode = "ONLY_FULL_GROUP_BY", this configuration strict implementation of the "SQL92 standard." Many upgrade from 5.6 to 5.7, in order to be compatible syntax, most would choose to adjust sql_mode, making it consistent with 5.6, in order to try compatible programs.

solve:

Solve this problem need to modify the mysql installation directory,
 1.Windows is modified in my.ini file inside, the last line in the [mysqld] add:
  sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
 2.UNIX modify located in the etc folder my.cnf, vim under the cursor to the last to add:
  sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
 3. If mysql8, sql_mode not contain NO_AUTO_CREATE_USER, because more than MYSQL8 has been canceled NO_AUTO_CREATE_USER. If you add a mysql not start correctly
 4. The final restart mysql service can be.

Intelligent Recommendation

MySQL is using group by query error this is incompatible with sql_mode=only_full_group_by

The specific errors are as follows: the reason: MySQL 5.7.5 and above functions depend on the detection function. If ONLY_FULL_GROUP_BY SQL mode is enabled (by default), MySQL will reject select lists...

MySQL query error: ORDER BY clause is not in GROUP BY.. this is incompatible with sql_mode=only_full_group_by

my situation : Mysql 5.7.21 version runs sql and reports the same error. The same sql runs directly locally without error. However, this error occurs when connecting to Mysql on the server (even runni...

Mysql Group by error: 1055-Expression #1GROUP BY this is incompatible with sql_mode=only_full_group_by

Original link: https://blog.csdn.net/loveliness_peri/article/details/88051316   The reason for the problem: there are more in sql_mode:ONLY_FULL_GROUP_BY Use SQL statements to query this configur...

Solution: MySQL Error 1055: Group by clause; this is incompatible with sql_mode = only_full_group_by

When using MySQL to perform Group By query statement, error: problem causes The SQL standard does not allow the Select list, a Having condition statement, or a grouse in the Group By in the Order by s...

MySQL error: in aggregated query without group by, incompatible with sql_mode = only_full_group_by

Scenario: The same product, different models, there are different prices, such as 1 mobile phone has 128G, 2,256g, 2500 yuan, but the product display page, the price shows 2,000 yuan, if it is a produ...

More Recommendation

This is incompatible with sql_mode = only_full_group_by error that occurs when Mysql is upgraded to 5.7

Complete error message ----------------------------------------- WEB error: ------ ----------------------------------- Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #2 o...

MySQL5.7 Error This Is Incompatible with SQL_MODE = Only_Full_Group_by problem solving

CentOS7 environment mysql5.7 execution GROUP statement Error: SELECT list is not in GROUP BY clause and contains nonaggregated column '***' which is not functionally dependent on columns in GROUP BY c...

[Mysql problem] Perfect solving this is incompatible with sql_mode = only_full_group_by

Xiaobian MySQL version: mysql ver 14.14 Distrib 5.7.28 > Problem screenshot: >solution: In the mysql installation directory, my.cnf file (or Windows system is my.ini file), newsql_mode=STRICT_TR...

MySQL - Problem Solving --This Is Incompatible with SQL_MODE = ONLY_FULL_GROUP_BY

Problem problem 1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'reporter.reporter_status.N_APP_CODE' which is not functionally dependent on columns in ...

MySQL INCOMPATIBLE with SQL_MODE = Only_Full_Group_by problem solving

Permanent modification plan Need to modify the mysql configuration file My.cnf, Linux is generally/etcor/etc/mysqlIn the directory, add the last line of the configuration file Restart the MySQL servic...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top