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

Direct DB connection does not work with ONLY_FULL_GROUP_BY option enabled #445

Closed
ghost opened this issue Aug 15, 2017 · 8 comments
Closed

Comments

@ghost
Copy link

ghost commented Aug 15, 2017

If ONLY_FULL_GROUP_BY MySQL option enabled, queries fail. This option is enabled by default since MySQL 5.7.5.

Reject queries for which the select list, HAVING condition, or ORDER BY list refer to nonaggregated columns that are neither named in the GROUP BY clause nor are functionally dependent on (uniquely determined by) GROUP BY columns.

@alexanderzobnin
Copy link
Collaborator

Can you describe an error you get?

@ghost
Copy link
Author

ghost commented Aug 15, 2017

no error as such. I just don't see any data on the default zabbix demo dashboard when the direct DB connection is enabled.

@adisong
Copy link

adisong commented Aug 15, 2017

SQL queries generated by grafana-zabbix plugin fails if you have ONLY_FULL_GROUP_BY sql mode enabled on your db. https://stackoverflow.com/questions/23921117/disable-only-full-group-by

@ghost
Copy link
Author

ghost commented Aug 16, 2017

Sweet. Thanks for that, I tired it and it worked! Thank you so much.

@ghost
Copy link
Author

ghost commented Aug 16, 2017

Thanks guys for the help.

@ghost ghost closed this as completed Aug 16, 2017
@alexanderzobnin alexanderzobnin changed the title Direct DB connection does not work Direct DB connection does not work with ONLY_FULL_GROUP_BY option enabled Aug 17, 2017
@alexanderzobnin
Copy link
Collaborator

@inkonthebrink @nayra123 reopened it with new description.

@alexanderzobnin
Copy link
Collaborator

@alexanderzobnin
Copy link
Collaborator

Fixed in 35f89bf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants