From 7805c459f775847cfdefe498651e0162bcabcb31 Mon Sep 17 00:00:00 2001 From: terwer Date: Sun, 19 Jun 2022 16:41:56 +0800 Subject: [PATCH] fix:fix database --- .gitignore | 1 + docker-compose-mysql.yml | 4 ++-- docker-compose.yml | 4 ++-- jvue-server/src/main/resources/application-dev.properties | 8 ++++---- .../src/main/resources/application-docker.properties | 8 ++++---- jvue-server/src/main/resources/logback-spring.xml | 2 +- 6 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 9db11c2..d70ef39 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ docker-compose.prod.yml /data/ src/main/resources/static/ src/main/resources/templates/ +jvue-server-log/ diff --git a/docker-compose-mysql.yml b/docker-compose-mysql.yml index 9c19f48..7233062 100644 --- a/docker-compose-mysql.yml +++ b/docker-compose-mysql.yml @@ -53,8 +53,8 @@ services: - "TZ=CST-8" - "MYSQL_ROOT_PASSWORD=123456" - "MYSQL_ROOT_HOST=%" - - "MYSQL_DATABASE=testbugucms" - - "MYSQL_USER=test" + - "MYSQL_DATABASE=bugucms" + - "MYSQL_USER=terwer" - "MYSQL_PASSWORD=123456" volumes: - ./data/mysql/db:/var/db diff --git a/docker-compose.yml b/docker-compose.yml index be24556..9156a5e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,8 +53,8 @@ services: - "TZ=CST-8" - "MYSQL_ROOT_PASSWORD=123456" - "MYSQL_ROOT_HOST=%" - - "MYSQL_DATABASE=testbugucms" - - "MYSQL_USER=test" + - "MYSQL_DATABASE=bugucms" + - "MYSQL_USER=terwer" - "MYSQL_PASSWORD=123456" volumes: - ./jvue-mysql/init:/docker-entrypoint-initdb.d/ diff --git a/jvue-server/src/main/resources/application-dev.properties b/jvue-server/src/main/resources/application-dev.properties index a43cf58..f3b6780 100644 --- a/jvue-server/src/main/resources/application-dev.properties +++ b/jvue-server/src/main/resources/application-dev.properties @@ -1,17 +1,17 @@ # ================================================ -# 项目基本配置 +# \u9879\u76ee\u57fa\u672c\u914d\u7f6e # ================================================ server.port=8081 # ================================================ -# DataSource配置 +# DataSource\u914d\u7f6e # ================================================ # MyBatis mybatis.mapper-locations=classpath:mappers/*.xml # MySQL spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.datasource.url=jdbc:MySQL://localhost:3306/testbugucms?useUnicode=true&characterEncoding=utf8&useSSL=false -spring.datasource.username=root +spring.datasource.url=jdbc:MySQL://localhost:3306/bugucms?useUnicode=true&characterEncoding=utf8&useSSL=false +spring.datasource.username=terwer spring.datasource.password=123456 # PageHelper pagehelper.helperDialect=mysql diff --git a/jvue-server/src/main/resources/application-docker.properties b/jvue-server/src/main/resources/application-docker.properties index ca8a4f9..f3b6780 100644 --- a/jvue-server/src/main/resources/application-docker.properties +++ b/jvue-server/src/main/resources/application-docker.properties @@ -1,17 +1,17 @@ # ================================================ -# 项目基本配置 +# \u9879\u76ee\u57fa\u672c\u914d\u7f6e # ================================================ server.port=8081 # ================================================ -# DataSource配置 +# DataSource\u914d\u7f6e # ================================================ # MyBatis mybatis.mapper-locations=classpath:mappers/*.xml # MySQL spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.datasource.url=jdbc:MySQL://39.104.66.135:3306/testbugucms?useUnicode=true&characterEncoding=utf8&useSSL=false -spring.datasource.username=test +spring.datasource.url=jdbc:MySQL://localhost:3306/bugucms?useUnicode=true&characterEncoding=utf8&useSSL=false +spring.datasource.username=terwer spring.datasource.password=123456 # PageHelper pagehelper.helperDialect=mysql diff --git a/jvue-server/src/main/resources/logback-spring.xml b/jvue-server/src/main/resources/logback-spring.xml index deb4c7d..55cb4dc 100644 --- a/jvue-server/src/main/resources/logback-spring.xml +++ b/jvue-server/src/main/resources/logback-spring.xml @@ -8,7 +8,7 @@ - +