在 Hibernate 中出现MySQL server version for the right syntax to use near 'type=InnoDB' at line

在 Hibernate 中出现 MySQL server version for the right syntax to use near 'type=InnoDB' at line的错误的时候

可能是hibernate的配置文件出现错误了  :

·····在 hibernate.cfg.xml中 配置higbernate 数据库方言时,由于MySql 版本升级,过去的方言已经buz不再适用

      这是老版本的数据库 方言  org.hibernate.dialect.MySQLInnoDBDialect

     这是新版本的: org.hibernate.dialect.MySQL5InnoDBDialect

 

 

你可能感兴趣的:(hibernate,框架)