Skip to content

Commit

Permalink
[doc] add mysql startup failed issue help doc (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenkyzhang authored Mar 27, 2023
1 parent 8d7dac7 commit dac379d
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,17 @@ spring:
url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false
```
2. 缺少hibernate的mysq方言,导致启动异常
如果上述配置启动系统,出现` Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set`异常,需要在`application.yml`文件中增加以下配置:
```yaml
spring:
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
```

3. 通过docker启动时,需要修改host为宿主机的外网Ip,包括mysql连接字符串和redis。


**启动 HertzBeat 浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat**

0 comments on commit dac379d

Please sign in to comment.