主题 : jeecms启动报错,数据库连接失败 |
级别: 解元
![]() |
1# 发表于:2021-09-07 10:29:21 IP:124.174.*.*
|
||||
---|---|---|---|---|---|
级别: 解元
![]() |
3# 发表于:2021-09-07 10:38:16 IP:124.174.*.*
mysql 5.7.17,数据导入成功了
spring.datasource.driver-class-name=com.mysql.jdbc.Driver #spring.datasource.url=jdbc:mysql://localhost:3308/jeecms1.4?characterEncoding=utf-8&serverTimezone=UTC&useSSL=false #spring.datasource.url=jdbc:mysql://localhost:3308/jeecmslf?characterEncoding=utf-8&serverTimezone=UTC&useSSL=false spring.datasource.url=jdbc:mysql://127.0.0.1:3306/jeecms?useUnicode=true&characterEncoding=UTF-8&useSSL=false spring.datasource.username=root #spring.datasource.password=password spring.datasource.password=admin |
||
---|---|---|---|
级别: 解元
![]() |
4# 发表于:2021-09-07 10:39:23 IP:124.174.*.*
<dependency>
<groupId>com.kingbase</groupId> <artifactId>dialect-for-hibernate</artifactId> <version>5.2.17</version> </dependency> 这个一直加载不下来,跟这个有关系吗 |
||
---|---|---|---|
级别: 总版主
![]() |
5# 发表于:2021-09-07 10:43:06 IP:111.203.*.*
和这个没关系,用mysql可以把这个删除 |
||
---|---|---|---|
级别: 总版主
![]() |
6# 发表于:2021-09-07 10:44:52 IP:111.203.*.*
看下配置文件 有没有改对,application.properties 这个看下配置的是模式和改的文件对的上不
|
||
---|---|---|---|
级别: 解元
![]() |
7# 发表于:2021-09-07 11:11:26 IP:124.174.*.*
都改了,按着文档改的,现在就是数据库一直连不上,找不着原因,
跟这块有关系吗? The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 2021-09-07 11:05:37.415 [localhost-startStop-1] INFO org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect 2021-09-07 11:05:37.490 [localhost-startStop-1] INFO o.h.engine.jdbc.env.internal.LobCreatorBuilderImpl - HHH000422: Disabling contextual LOB creation as connection was null 2021-09-07 11:05:38.780 [localhost-startStop-1] WARN org.hibernate.orm.deprecation - HHH90000021: Encountered deprecated setting [hibernate.ejb.interceptor], use [hibernate.session_factory.interceptor] instead 2021-09-07 11:05:42.024 [localhost-startStop-1] INFO org.hibernate.cache.spi.UpdateTimestampsCache - HHH000250: Starting update timestamps cache at region: org.hibernate.cache.spi.UpdateTimestampsCache 2021-09-07 11:05:42.027 [localhost-startStop-1] INFO org.hibernate.cache.internal.StandardQueryCache - HHH000248: Starting query cache at region: org.hibernate.cache.internal.StandardQueryCache 2021-09-07 11:05:44.982 [localhost-startStop-1] WARN c.j.common.web.cache.SingletonEhCacheRegionFactory - HHH020003: Could not find a specific ehcache configuration for cache named [com.jeecms.content.domain.Content.contentTypes]; using defaults. 2021-09-07 11:05:44.983 [localhost-startStop-1] WARN net.sf.ehcache.config.CacheConfiguration - Configuration problem for cache com.jeecms.content.domain.Content.contentTypes: MaxEntriesLocalHeap equal or greater than MaxEntriesLocalDisk. This will result in useless disk storage. 2021-09-07 11:05:45.912 [localhost-startStop-1] INFO o.h.hql.internal.QueryTranslatorFactoryInitiator - HHH000397: Using ASTQueryTranslatorFactory 2021-09-07 11:05:46.209 [localhost-startStop-1] INFO o.s.orm.jpa.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'default' 2021-09-07 11:05:46.236 [localhost-startStop-1] INFO com.zaxxer.hikari.HikariDataSource - HikariCP - Starting... 2021-09-07 11:06:08.241 [localhost-startStop-1] ERROR com.zaxxer.hikari.pool.HikariPool - HikariCP - Exception during pool initialization. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure |
||
---|---|---|---|
级别: 总版主
![]() |
8# 发表于:2021-09-07 11:14:13 IP:111.203.*.*
没关系的,你是链接的那个配置文件 application.properties 这个配置文件里配置的那个链接呢
|
||
---|---|---|---|