GenerationTarget encountered exception accepting command : Error executing DDL via JDBC Statement

后端 未结 7 1270
太阳男子
太阳男子 2020-12-29 06:08

I am a novice in hibernate world and facing,

WARN: GenerationTarget encountered exception accepting command : Error executing DDL via JDBC Statement
org.hibe         


        
7条回答
  •  失恋的感觉
    2020-12-29 06:51

    You should try a different dialects likeorg.hibernate.dialect.MySQL5Dialect OR org.hibernate.dialect.MySQLMyISAMDialect OR org.hibernate.dialect.MySQLInnoDBDialect to see which one works for you.

    All in all , your current dialect is generating , type=MyISAM while it should be , ENGINE=MyISAM in create table query.

    mysql error 'TYPE=MyISAM'

    You should read this too , Why do I need to configure the SQL dialect of a data source?

    Your logs say that this query was tried to be executed , create table MyTable (id integer not null, name varchar(255), primary key (id)) type=MyISAM so you should try to execute that query directly on mysql command prompt to see if that works for your MySQL version.

    Also, in question do specify your MySQL version too.

    Hope it helps !!

提交回复
热议问题