cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wido den Hollander <>
Subject MySQL 5.7 and SQL Mode
Date Mon, 10 Apr 2017 15:00:55 GMT

While testing with Ubuntu 16.04 and CloudStack 4.10 (from master) I've ran into this error
on the management server:

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #1 of SELECT list is
not in GROUP BY clause and contains nonaggregated column '' which is not functionally
dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
	at sun.reflect.GeneratedConstructorAccessor50.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
	at java.lang.reflect.Constructor.newInstance(
	at com.mysql.jdbc.Util.handleNewInstance(
	at com.mysql.jdbc.Util.getInstance(
	at com.mysql.jdbc.SQLError.createSQLException(
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(

I was able to fix this to add this to my my.cnf:


Should we maybe set the SQL Mode as a connection parameter when connecting to the DB? This
prevents users from having to set this manually in their MySQL configuration.

Did somebody else run into this with MySQL 5.7?

Thank you,


View raw message