Jelajahi Sumber

修改mysql 的数据库名称 onlinepapers

Feick 5 tahun lalu
induk
melakukan
b4a99a2cbd

+ 2 - 2
deploy.sh

@@ -4,6 +4,6 @@ docker build -t feick/diagnosis:$date .
 echo "backend current tag is $date"
 sed -i "s/\${date}/$(echo $date)/g" deployment.yaml
 kubectl apply -f deployment.yaml
-#sed -i "s/\${date}/$(echo $date)/g" deployment-prod.yaml
-#kubectl apply -f deployment-prod.yaml
+sed -i "s/\${date}/$(echo $date)/g" deployment-prod.yaml
+kubectl apply -f deployment-prod.yaml
 echo "build finish."

+ 1 - 1
src/main/resources/application-cloud.properties

@@ -1,7 +1,7 @@
 server.port=8080
 spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/
 
-spring.datasource.url=jdbc:mysql://mysql:3306/OnlinePapers?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
+spring.datasource.url=jdbc:mysql://mysql:3306/onlinepapers?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
 spring.datasource.username=onlinepapers
 spring.datasource.password=134679258Aa_
 

+ 1 - 1
src/main/resources/application-dev.properties

@@ -5,7 +5,7 @@ spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/reso
 
 
 #spring.datasource.url=jdbc:mysql://47.104.200.54:3306/OnlinePapers?useUnicode=true&characterEncoding=utf-8
-spring.datasource.url=jdbc:mysql://${serverAddress}:30875/OnlinePapers?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
+spring.datasource.url=jdbc:mysql://${serverAddress}:30875/onlinepapers?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
 spring.datasource.username=onlinepapers
 spring.datasource.password=134679258Aa_
 spring.jpa.hibernate.ddl-auto=update

+ 1 - 1
src/main/resources/application-docker.properties

@@ -3,7 +3,7 @@ serverAddress=119.23.22.31
 
 spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/
 
-spring.datasource.url=jdbc:mysql://${serverAddress}:30875/OnlinePapers?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
+spring.datasource.url=jdbc:mysql://${serverAddress}:30875/onlinepapers?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
 spring.datasource.username=onlinepapers
 spring.datasource.password=134679258Aa_
 

+ 1 - 1
src/main/resources/application-pre.properties

@@ -1,7 +1,7 @@
 server.port=8080
 spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/
 
-spring.datasource.url=jdbc:mysql://mysql:3306/OnlinePapers?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
+spring.datasource.url=jdbc:mysql://mysql:3306/onlinepapers?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
 spring.datasource.username=onlinepapers
 spring.datasource.password=134679258Aa_
 

+ 1 - 1
src/main/resources/application-prod.properties

@@ -4,7 +4,7 @@ serverOutsideAddress=www.yaoxiangedu.com
 
 spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/
 
-spring.datasource.url=jdbc:mysql://${serverAddress}:3306/OnlinePapers?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
+spring.datasource.url=jdbc:mysql://${serverAddress}:3306/onlinepapers?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
 spring.datasource.username=root
 spring.datasource.password=134679258Aa_