日期:2014-05-19  浏览次数:20715 次

SSH框架整合启动提示如下错误
严重: Unsuccessful: create table ac_user (id integer not null auto_increment, name varchar(30), password varchar(16), Email varchar(255), primary key (id)) type=InnoDB
八月 08, 2012 11:54:47 上午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute
严重: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=InnoDB' at line 1
八月 08, 2012 11:54:47 上午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute
信息: schema update complete


无法自动建表啊。

------解决方案--------------------
<prop key="hibernate.dialect">org.hibernate.dialect.MySQL5InnoDBDialect</prop> 
方言改成 试试