刚入门Hibernate的时候对数据库进行新建表的操作时,日志报错Table ’test.news_table‘ doesn’t exist。


Hibernate创建表报错Table ’test.news_table‘ doesn’t exist。


需要将Hibernate的配置文件hibernate.cfg.xml中dialect中数据库方言修改。

在MySQL的后面加上5。

Hibernate创建表报错Table ’test.news_table‘ doesn’t exist。

原因是在mysql5.0版本后不支持type=InnoDB关键字,需要用engine=InnoDB

反正照着改就对了。

相关文章:

  • 2021-10-20
  • 2021-08-17
  • 2021-07-21
  • 2021-12-28
  • 2021-12-31
  • 2021-06-07
  • 2021-11-18
猜你喜欢
  • 2021-06-05
  • 2020-01-08
  • 2021-10-21
  • 2021-09-22
  • 2021-05-15
  • 2022-01-11
  • 2021-12-09
相关资源
相似解决方案