check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=InnoDB' at line 7

第一种是:解决MySQL的版本问题(我用的是mysql 5.5版本),mysql 5.0版本以后的数据库方言是:org.hibernate.dialect.MySQ5LInnoDBDialect。第二种是,如果你数据库方言用的是MySQLInnoDBDialect,这个要表存在才能用。可是你没建表,所以你应该改用MySQLDialect。以下是MySQLDialect和MySQLInnoDBDialect的区别:MySQLDialect:表名不存在下使用。MySQLInnoDBDialect:表名存在的情况下使用

link:

http://blog.csdn.net/zys_zhou66/article/details/53763780

原文地址:https://www.cnblogs.com/ysloong/p/7267840.html