This is an automated email from the ASF dual-hosted git repository.

gongchao pushed a commit to branch oceanbase
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/oceanbase by this push:
     new 9823f61c0 update jdbc url
9823f61c0 is described below

commit 9823f61c0b6ba4cc7cad998bd061af96e2c9c49a
Author: tomsun28 <[email protected]>
AuthorDate: Sat May 18 13:17:34 2024 +0800

    update jdbc url
    
    Signed-off-by: tomsun28 <[email protected]>
---
 manager/src/main/resources/application-test.yml | 10 +++++-----
 manager/src/main/resources/application.yml      |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/manager/src/main/resources/application-test.yml 
b/manager/src/main/resources/application-test.yml
index 5562e96e0..a4f3ea29d 100644
--- a/manager/src/main/resources/application-test.yml
+++ b/manager/src/main/resources/application-test.yml
@@ -16,16 +16,16 @@ server:
   port: ${random.int[10000,19999]}
 spring:
   datasource:
-    driver-class-name: org.h2.Driver
-    username: sa
-    password: 123456
-    url: jdbc:h2:./data/test;MODE=MYSQL
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    username: root
+    password:
+    url: 
jdbc:mysql://localhost:2881/test?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8&useSSL=false
     hikari:
       max-lifetime: 120000
   jpa:
     show-sql: false
     database-platform: org.eclipse.persistence.platform.database.MySQLPlatform
-    database: h2
+    database: mysql
     properties:
       eclipselink:
         logging:
diff --git a/manager/src/main/resources/application.yml 
b/manager/src/main/resources/application.yml
index e50994183..d57cde91d 100644
--- a/manager/src/main/resources/application.yml
+++ b/manager/src/main/resources/application.yml
@@ -69,14 +69,14 @@ spring:
     driver-class-name: com.mysql.cj.jdbc.Driver
     username: root
     password:
-    url: 
jdbc:mysql://localhost:2881/hertzbeat2?useUnicode=true&characterEncoding=utf-8&useSSL=false
+    url: 
jdbc:mysql://localhost:2881/hertzbeat?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8&useSSL=false
     hikari:
       max-lifetime: 120000
 
   jpa:
     show-sql: false
     database-platform: org.eclipse.persistence.platform.database.MySQLPlatform
-    database: h2
+    database: mysql
     properties:
       eclipselink:
         logging:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to