主题 : jeecms启动报错,数据库连接失败
级别: 解元
UID: 138904
积分:253 加为好友
威望: 12 精华: 0
主题:36 回复:75
注册时间:2021-09-03
在线时长:0
1#   发表于:2021-09-07 10:29:21  IP:124.174.*.*
你好,请问下,这个jar包一直更新不下来,项目启动一直报连接数据库失败
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
2#   发表于:2021-09-07 10:34:03  IP:111.203.*.*
数据库什么版本?数据导入成功了没有?检查数据库连接信息
路漫漫其修远兮,吾将上下而求索!
级别: 解元
UID: 138904
积分:253 加为好友
威望: 12 精华: 0
主题:36 回复:75
注册时间:2021-09-03
在线时长:0
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
级别: 解元
UID: 138904
积分:253 加为好友
威望: 12 精华: 0
主题:36 回复:75
注册时间:2021-09-03
在线时长:0
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>
这个一直加载不下来,跟这个有关系吗
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
5#   发表于:2021-09-07 10:43:06  IP:111.203.*.*
<dependency>
<groupId>com.kingbase</groupId>
<artifactId>dialect-for-hibernate</artifactId>
<version>5.2.17</version>
</dependency>
这个一直加载不下来,跟这个有关系吗
和这个没关系,用mysql可以把这个删除
路漫漫其修远兮,吾将上下而求索!
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
6#   发表于:2021-09-07 10:44:52  IP:111.203.*.*
看下配置文件 有没有改对,application.properties 这个看下配置的是模式和改的文件对的上不
路漫漫其修远兮,吾将上下而求索!
级别: 解元
UID: 138904
积分:253 加为好友
威望: 12 精华: 0
主题:36 回复:75
注册时间:2021-09-03
在线时长:0
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
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
8#   发表于:2021-09-07 11:14:13  IP:111.203.*.*
没关系的,你是链接的那个配置文件  application.properties 这个配置文件里配置的那个链接呢
路漫漫其修远兮,吾将上下而求索!
级别: 解元
UID: 138904
积分:253 加为好友
威望: 12 精华: 0
主题:36 回复:75
注册时间:2021-09-03
在线时长:0
9#   发表于:2021-09-07 11:23:05  IP:124.174.*.*
好了,可以了,谢谢您了
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
10#   发表于:2021-09-07 11:26:11  IP:111.203.*.*
路漫漫其修远兮,吾将上下而求索!
1 2 3 > >| 共3页