1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column solution


1055-Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column appears in Mysql .
The main reason for this is that the database version is being upgraded, but your sql statement has not been changed.
Generally do not modify the code, modify the database configuration file can be resolved.
The solution is as follows:
1. Find the installation path of mysql data.
2. Find the storage path of the data. Here I take windows as an example.
The general installation path has a my.ini configuration file under C:/ProgramData/MySQL/MySQL Server xx.
3. Modify the configuration file.
Open the file with Notepad or another editor, and search for the line "sql-mode =...".
Change it as shown below. Generally, just remove the first configuration.
insert image description here
4. Just restart the Mysql service in the service. If you don’t know how to restart it, you can restart the computer to complete it.

Guess you like

Origin blog.csdn.net/u011046042/article/details/132096452