When addressing implementation group by statement this is incompatible with sql_mode = only_full_group_by error,
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 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.
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...
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...
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...
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...
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...
Complete error message ----------------------------------------- WEB error: ------ ----------------------------------- Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #2 o...
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...
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...
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 ...
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...