<div dir="ltr">Hi Berry,<div><br></div><div>Thank you for your response. The problem is solved, here are few details.</div><div><br></div><div>The problem appeared on a fresh install based on Ubuntu 16.04 and MySQL version 5.7.19 installed from package. ONLY_FULL_GROUP_BY is not set in any of the configuration files, but it's hardcoded somewhere.</div><div>The solution that worked for me which I found here (<a href="https://serverpilot.io/community/articles/how-to-disable-strict-mode-in-mysql-5-7.html">https://serverpilot.io/community/articles/how-to-disable-strict-mode-in-mysql-5-7.html</a>) was:</div><div><br></div><div><div>Create file /etc/mysql/conf.d/disable_strict_mode.cnf and add the following 2 lines:</div><div><br></div><div>[mysqld]</div><div>sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION</div><div><br></div><div>Then restart the MySQL service:</div><div><br></div><div># service mysql restart</div></div><div><br></div><div>Hope that helps others.</div><div>Thank you.</div><div><br></div><div>Emil</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 27, 2017 at 3:18 AM, Berry A.W. van Halderen <span dir="ltr"><<a href="mailto:berry@nlnetlabs.nl" target="_blank">berry@nlnetlabs.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 07/23/2017 10:21 PM, Emil Natan wrote:<br>
> Hello,<br>
><br>
> opendnssec version 1.4.14 with OpenHSM 2.2.0.<br>
><br>
> OpenDNSSEC manages few zones and it seems it all works well, but:<br>
><br>
</span>> # ods-ksmutil key ds-seen -z <a href="http://1715.test.net" rel="noreferrer" target="_blank">1715.test.net</a> <<a href="http://1715.test.net" rel="noreferrer" target="_blank">http://1715.test.net</a>> -k 18199<br>
<span class="">> ERROR: error executing SQL - Expression #3 of SELECT list is not in<br>
> GROUP BY clause and contains nonaggregated column 'k.algorithm' which<br>
> is not functionally dependent on columns in GROUP BY clause; this is<br>
> incompatible with sql_mode=only_full_group_by<br>
> Error: failed to count keys<br>
><br>
<br>
</span>I guess you have recently upgraded MySQL/MariaDB and/or its global<br>
configuration. Your *nix distribution package have<br>
apparently configured the enforced syntax to be more strict then used to<br>
be. That'll break backwards compatibility, and for that reason I'm not<br>
agreeing with their policy in this matter.<br>
In general, they're correct in the statement that all columns in selects<br>
should be aggregates or in group-by clauses, however enforcing this<br>
brings out far more problems while most queries do not have bugs here<br>
(although incorrect, many SQL engines<br>
accept this). It should have been a warning.<br>
<br>
It is far safer to modify your MySQL configration to do away with this<br>
error. The following thread describes the issue:<br>
<a href="https://stackoverflow.com/questions/23921117/disable-only-full-group-by" rel="noreferrer" target="_blank">https://stackoverflow.com/<wbr>questions/23921117/disable-<wbr>only-full-group-by</a><br>
<br>
The setting you are looking for is probably not directly in /etc/my.cnf,<br>
but in one of the /etc/my.cnf,d/* files or something similar.<br>
But this all depends too much on your distribution. You would be looking<br>
for a setting named "sql_mode" in in the [mysqld] section.<br>
I think you need to remove the ONLY_FULL_GROUP_BY item from that list<br>
and restart the mysql daemon/service.<br>
<br>
\Berry<br>
<br>
<br>
______________________________<wbr>_________________<br>
Opendnssec-user mailing list<br>
<a href="mailto:Opendnssec-user@lists.opendnssec.org">Opendnssec-user@lists.<wbr>opendnssec.org</a><br>
<a href="https://lists.opendnssec.org/mailman/listinfo/opendnssec-user" rel="noreferrer" target="_blank">https://lists.opendnssec.org/<wbr>mailman/listinfo/opendnssec-<wbr>user</a><br>
</blockquote></div><br></div>