Spring Boot:Unable to open JDBC connection for schema management target
来源:互联网 发布:学会编程能做什么 编辑:程序博客网 时间:2024/06/07 15:57
启动Spring Boot工程时出现了这个错误,表示无法建立JDBC连接,肯定首先是想到数据库的连接出了问题,Spring Boot在启动时会检查数据库的连接是否正常,所以在这里会报错,这里使用了Mysql数据源,配置信息:
# MYSQL DATASOURCE CONFIGspring.datasource.url=jdbc:mysql://localhost:3306/testspring.datasource.username=rootspring.datasource.password=rootspring.datasource.driverClassName=com.mysql.jdbc.Driverspring.jpa.database=MYSQLspring.jpa.show-sql=truespring.jpa.hibernate.ddl-auto=updatespring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategyspring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
发现用户名和密码都正常,去MYSQL下查看,居然是没有数据库test的问题。所以只需要新建test数据库即可:
CREATE DATABASE IF NOT EXISTS test DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
这里出现的问题一定是在JDBC的连接上,所以对症下药,检查数据库的配置信息,可能是用户名密码不匹配啊,数据库链接写得不对啊,或者数据库没有启动啊,都是有可能的。
阅读全文
0 0
- Spring Boot:Unable to open JDBC connection for schema management target
- Unable to open a connection to the libvirt management daemon
- Unable to get managed connection for jdbc
- 17-10-31_Unable to execute schema management to JDBC target异常
- Unable to open sync connection
- Unable to open sync connection!
- Unable to open sync connection!
- Unable to locate Spring NamespaceHandler for XML schema namespace
- Unable to locate Spring NamespaceHandler for XML schema namespace异常
- Unable to locate Spring NamespaceHandler for XML schema namespace
- Unable to locate Spring NamespaceHandler for XML schema namespace
- 解决Unable to locate Spring NamespaceHandler for XML schema namespace
- Unable to locate Spring NamespaceHandler for XML schema namespace
- Unable to locate Spring NamespaceHandler for XML schema namespace
- Unable to locate Spring NamespaceHandler for XML schema namespace问题解决
- spring quartz Could not open JDBC Connection for transaction; 错误
- Unable to open a test connection to the given database. JDBC url =
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop]
- h5在适配手机的时候,有的标签是不兼容的,需要添加配置
- KVO的简单使用
- RFFE射频前端基础
- 关于Android启动后都做了什么
- Photoshop抠图(运用背景橡皮擦工具进行抠图)
- Spring Boot:Unable to open JDBC connection for schema management target
- Mysql Innodb小结
- Scala学习笔记 --- case class 与 class 比较
- Java 7 的7个新特性
- 假设你有一个各位数字互不相同的四位数,把所有的数字从大到小排序后得到a,从小到大后得到b,然后用a-b替换原来这个数,并且继续操作。例如,从1234出发,依次可以得到4321-1234=3087、87
- Android音频系统之音频框架
- AtCoder:Connected?(思维)
- 关于Python的一些学习资料总结
- gradle包含库出现问题