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

mysql queries with "Group By" don't work out of the box #397

Open
vrdriver opened this issue Oct 18, 2018 · 0 comments
Open

mysql queries with "Group By" don't work out of the box #397

vrdriver opened this issue Oct 18, 2018 · 0 comments

Comments

@vrdriver
Copy link

Hi.
After working on a web app for many years, of which has been functioning well in various production and dev environments with no changes to the mysql config, I came across a problem yesterday where I couldn't perform a query because I had the "Group By" statement in the query. See here for more details.

I solved the problem by editing /etc/mysql/mysql.conf.d/mysqld.cnf

I added the following line to the bottom of the config 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

The only reason I make this suggestion, is scotch-box is said to work straight out of the box, and I figured that there are plenty of queries that use "Group By". Anyway just a thought.

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