在drop向导中启动服务器时,我试图连接到我的数据库。但是,当我试图启动服务器时,会出现以下错误
org.hibernate.engine.jdbc.internal.JdbcServicesImpl: HHH000342:
Could not obtain connection to query metadata :
Driver:org.h2.Driver@7ed6a46e returned null for
URL:jdbc:mysql://localhost:3306/testDatabase
以下是我的.yml文件的代码
# Database settings.
database:
# the name of your JDBC driver
driverClass: org.h2.Driver
# the username
user: root
# the password
password: superSecretPassword
# the JDBC URL
url: jdbc:mysql://localhost:3306/testDatabase
server:
type: simple
connector:
type: http
port: 8080
这里有什么问题吗?
发布于 2014-06-30 07:53:55
如果使用错误的JDBC驱动程序类:org.h2.Driver
,则必须使用mysql驱动程序,如com.mysql.jdbc.Driver
。
https://stackoverflow.com/questions/24485283
复制相似问题