51,411
社区成员
发帖
与我相关
我的任务
分享
[quote=引用 楼主 云上行者Gorge 的回复:]我在阿里云上安装了mysql 版本号是 5.7.30=0ubuntu0.18.04.1 然后在hibernate.hbm.xml 的配置文件中配置的 <property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property> 常见的MySQL5InnoDBDialect,MySQL5Dialect,MySQL57Dialect,MySQL57InnoDBDialect 都尝试过了,但是依然存在下面的警告,程序能正常运行,也能正常插入结果。 WARN: GenerationTarget encountered exception accepting command : Error executing DDL "alter table product_ add constraint FK5g0v39gl73bdiw9waaha0pkfg foreign key (category) references category_ (id)" via JDBC Statement org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "alter table product_ add constraint FK5g0v39gl73bdiw9waaha0pkfg foreign key (category) references category_ (id)" via JDBC Statement
我在阿里云上安装了mysql 版本号是 5.7.30=0ubuntu0.18.04.1 然后在hibernate.hbm.xml 的配置文件中配置的 <property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property> 常见的MySQL5InnoDBDialect,MySQL5Dialect,MySQL57Dialect,MySQL57InnoDBDialect 都尝试过了,但是依然存在下面的警告,程序能正常运行,也能正常插入结果。 WARN: GenerationTarget encountered exception accepting command : Error executing DDL "alter table product_ add constraint FK5g0v39gl73bdiw9waaha0pkfg foreign key (category) references category_ (id)" via JDBC Statement org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "alter table product_ add constraint FK5g0v39gl73bdiw9waaha0pkfg foreign key (category) references category_ (id)" via JDBC Statement