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

Comments

Projects
None yet
1 participant
@vrdriver

vrdriver commented Oct 18, 2018

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