본문 바로가기

웹 개발/Spring

[Spring] JPA - How to fix “Error executing DDL ”alter table events drop foreign key {foreign key} “ via JDBC Statement”

alter 명령어로 특정 테이블의 foreign key를 drop할 때 발생하는 에러이므로 

에러가 발생하는 여러 경우가 있겠지만

 

이번에는 DDL에 RDBMS의 keyword가 포함되어 있는 경우였다.

RDBMS의 keyword란 MySQL의 state, PostgreSQL의 user와 같이 기능이 정의되어 있는 명령어를 말한다.

 

참고: 

stackoverflow.com/questions/54504230/how-to-fix-error-executing-ddl-alter-table-events-drop-foreign-key-fkg0mkvgsqn

 

How to fix "Error executing DDL "alter table events drop foreign key FKg0mkvgsqn8584qoql6a2rxheq" via JDBC Statement"

I'm trying to start spring boot project with MySQL database, but I have some problem with database. I try to start my application that, and server is running but hibernate don't create Tables etc. ...

stackoverflow.com