shu_sato Super Contributor.
Super Contributor.
259 views

(OO) Support Tip: A fresh installation with a newer version of MySQL can fail depending on 'sql_mode

A fresh installation of Central with a newer version of MySQL can fail with the following exception depending on 'sql_mode' setting in MySQL.

INFO   | jvm 1    | YYYY/MM/DD 16:44:26 | java.lang.RuntimeException: liquibase.exception.MigrationFailedException: Migration failed for change set META-INF/database/engine.changes.xml::Create OO_EXECUTION_INTERRUPTS::engine:
INFO   | jvm 1    | YYYY/MM/DD 16:44:26 |      Reason: liquibase.exception.DatabaseException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Invalid default value for 'UPDATED_TIME'

A workaround is to set "sql-mode=''" under the [mysqld] section in my.ini/cnf. Then recreate OO DB or reinstall OO after uninstalling it if necessary.

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.