【发布时间】:2021-01-08 16:55:19
【问题描述】:
所以我想制作一个简单的 CRUD 应用程序,我使用 MYSQL Workbench 作为数据库。 我在 MySQL Workbench 中的连接
Hostname : 127.0.0.1
Port : 3306
我不在 MySQL Workbench 中使用密码。
现在我的应用程序属性看起来像这样
spring.datasource.url=jdbc:mysql://localhost:3306/employee_management_system?useSSL=false
spring.datasource.username=root
spring.datasource.password=
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLInnoDBDialect
spring.jpa.hibernate.ddl-auto=update
我遇到的错误
org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "create table employees (id bigint not null auto_increment, email_id varchar(255), first_name varchar(255), last_name varchar(255), primary key (id)) type=InnoDB" via JDBC Statement
还有一个在底部
Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'type=InnoDB' at line 1
有人可以帮忙吗?
【问题讨论】:
-
也许这个回复对你有好处stackoverflow.com/questions/37066024/…
标签: spring spring-boot spring-mvc spring-data-jpa