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

前端 未结 9 1646
刺人心
刺人心 2021-02-04 04:44

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\

9条回答
  •  無奈伤痛
    2021-02-04 04:47

    Hmm I also encountered this issue but either of those solutions could not solve my issue. I am using MySQL database packaging with XAMPP. What I tried out to solve but failed

    • I deleted my Database located in "xampp\mysql\data"
    • I renamed my conflicted tables
    • Although I kept this "spring.jpa.hibernate.ddl-auto=update" setting in at start.

    So what I did to solve this issue. Might be yours

    • I completely uninstalled the XAMPP package and Installed it again.
    • I created new database name
    • RUN the application

    Friends it actually my circumstances, might be help your issue like me. If you have any question please post comment. Thanks

提交回复
热议问题