My application was built on Grails and MySQL. We've recently switched our DB to MariaDB and I understand it's fully compliant with MySQL. I am now trying to add a new domain object in my Grails app. Table creation fails with the following error.
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'type=InnoDB' at line 1
Grails creates tables with TYPE=INNODB at the end of the statement. I found out that having ENGINE=InnoDB in place of TYPE=INNODB resolves the issue. I manually ran the create table SQL on DB and it worked. However, I do not know how to have Grails use ENGINE=INNODB Vs Type=INNODB.
FYI. My app uses MySQL5InnoDBDialect and the following driver.
mysql:mysql-connector-java:5.1.32
I changed it with MariaDB driver and dialect but the results are same.