This content has been marked as final.
Show 2 replies
-
1. Re: JPA, Hibernate, How to specify database engine for MySQL datasource?
smarlow Mar 20, 2014 3:22 PM (in response to dhileman)It looks like MySQL5InnoDBDialect uses "ENGINE=InnoDB" and MySQL5Dialect does not. With MySQL5Dialect, I think that you should get the default MySQL storage engine.
MySQL also has configuration settings (database and server level) for the default storage engine which would be used if no storage engine is specified for the created database or table. See https://dev.mysql.com/doc/refman/5.1/en/storage-engine-setting.html
-
2. Re: JPA, Hibernate, How to specify database engine for MySQL datasource?
dhileman Mar 21, 2014 7:58 AM (in response to smarlow)Thank you, I just needed to set the default engine setting to NDBCLUSTER. I found an alternative solution, where I created a custom dialect class by extending the MySQL5Dialect class, but the solution you suggested is much better for my project.