cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Caused by: com.mysql.cj.exceptions.CJException: Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'

Open iyappan-dcis opened this issue 5 years ago • 8 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME

Webapp


CLOUDSTACK VERSION

4.14


##### CONFIGURATION

MySQL Version - 8.0.22
MySQL Connector Java - 5.1.25



##### OS / ENVIRONMENT

Centos 7


##### SUMMARY
I get the below error while starting the cloudstack management service.

Caused by: com.mysql.cj.exceptions.CJException: Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'

iyappan-dcis avatar Dec 16 '20 12:12 iyappan-dcis

@iyappan-dcis you want to wait until 4.15 to use MySQL8 with the latest mysql connector. There's a 4.15RC2 up for voting that you can test, see the dev ML https://markmail.org/message/jtsunp2z7rwl2zm7

yadvr avatar Dec 16 '20 12:12 yadvr

sql_mode can be set via db.properties too at /etc/cloudstack/management

yadvr avatar Dec 16 '20 12:12 yadvr

@rhtyd Thanks for the update. How to we populate schema on the database, I don't see a command that populates the schema on database?

iyappan-dcis avatar Dec 16 '20 13:12 iyappan-dcis

@iyappan-dcis did you follow the user install instructions from http://docs.cloudstack.apache.org/en/latest/quickinstallationguide/qig.html or from http://docs.cloudstack.apache.org/en/latest/installguide/index.html especially the cloudstack-setup-databases scripts if you get stuck please subscribe to [email protected], To join the users mailing list email [email protected]., and ask for help there.

DaanHoogland avatar Dec 16 '20 14:12 DaanHoogland

Are you fix this error ? @iyappan-dcis . i got same error

uttruongson1995 avatar Dec 28 '20 09:12 uttruongson1995

this is fixed in 4.15/master.

mysql8 is not supported in 4.14

weizhouapache avatar Dec 28 '20 09:12 weizhouapache

@uttruongson1995 @iyappan-dcis you're welcome to test the on-going 4.15RC3, see the thread - https://markmail.org/message/2hc34ete6se5tci6

yadvr avatar Dec 28 '20 12:12 yadvr

This is fixed in 4.15.0.0, and master. Closing on this remark, pl upgrade/use the latest release.

yadvr avatar Jan 14 '21 00:01 yadvr