Home  >  Article  >  Web Front-end  >  How to solve the problem that the console prints out the sql statement without error and the table is not created in the database

How to solve the problem that the console prints out the sql statement without error and the table is not created in the database

一个新手
一个新手Original
2017-09-26 09:52:271388browse

The dialect in hibernate does not match the version of Mysql. Type=InnoDB in the SQL statement was used before MySQL5.0. After 5.0, engine=InnoDB must be used. <br>

MySql5.0之前的配置 <property name="dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>5.0之后需要使用<property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<br>
测试确实成功了

The above is the detailed content of How to solve the problem that the console prints out the sql statement without error and the table is not created in the database. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn