Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘openboxes.tag.id’ #665

Closed
jmiranda opened this issue Dec 4, 2018 · 0 comments
Milestone

Comments

@jmiranda
Copy link
Member

jmiranda commented Dec 4, 2018

This error occurs when loading the dashboard on instances using MySQL 5.7+. By default, MySQL 5.7+ has disabled the ability to include columns in the SELECT clause that are not also in the GROUP BY clause.

https://stackoverflow.com/questions/48147294/error-sqlexceptionhelper146-expression-7-of-select-list-is-not-in-group-by-c

The bug should be easy to fix and will be included in an upcoming release, but you can use the following workaround in the meantime.

  1. Log into MySQL as root
  2. Execute the following statement
mysql> show variables like '%sql_mode%';
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| Variable_name | Value                                                                                                                                     |
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| sql_mode      | 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 |
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
  1. Copy the value removing ONLY_FULL_GROUP_BY
  2. Edit /etc/mysql/mysql.cnf
  3. Paste sql_mode value without ONLY_FULL_GROUP_BY to the bottom of the file
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
jmiranda added a commit that referenced this issue Dec 5, 2018
jmiranda added a commit that referenced this issue Dec 5, 2018
jmiranda added a commit that referenced this issue Mar 28, 2019
jmiranda added a commit that referenced this issue Mar 28, 2019
#665 Fixed nonaggregated column bug which causes a loud error on the …
@jmiranda jmiranda added this to the 0.8.5 milestone Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant