From 233128c4a7892eca3dc5c391cff7e665cb6f0201 Mon Sep 17 00:00:00 2001 From: wenkyzhang Date: Mon, 27 Mar 2023 16:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=83=A8=E5=88=86Mysql?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=92=8Credis=E8=BF=9E=E6=8E=A5=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../current/start/mysql-change.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/mysql-change.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/mysql-change.md index 155b0e32a30..90ca6b852ff 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/mysql-change.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/mysql-change.md @@ -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**