From 69a53a5f2a52a963a23e1004cbaa0f42e16a1209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E4=B9=85=E5=93=A5?= <787952492@qq.com> Date: Thu, 9 Jun 2022 16:51:02 +0800 Subject: [PATCH] mysql --- yudao-server/src/main/resources/application-prod.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yudao-server/src/main/resources/application-prod.yaml b/yudao-server/src/main/resources/application-prod.yaml index 50d89fc0..bd1f5d24 100644 --- a/yudao-server/src/main/resources/application-prod.yaml +++ b/yudao-server/src/main/resources/application-prod.yaml @@ -44,22 +44,22 @@ spring: test-on-return: false primary: master datasource: - ip: rm-2zey92ofhilzm3p4j0o.mysql.rds.aliyuncs.com:3306 +# ip: rm-2zey92ofhilzm3p4j0o.mysql.rds.aliyuncs.com:3306 master: name: vue_pro - url: jdbc:mysql://${spring.datasource.dynamic.datasource.ip}/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true + url: jdbc:mysql://rm-2zey92ofhilzm3p4j0o.mysql.rds.aliyuncs.com:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true driver-class-name: com.mysql.cj.jdbc.Driver username: vue_pro password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#- slave: # 模拟从库,可根据自己需要修改 name: vue_pro - url: jdbc:mysql://${spring.datasource.dynamic.datasource.ip}/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true + url: jdbc:mysql://rm-2zey92ofhilzm3p4j0o.mysql.rds.aliyuncs.com:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true driver-class-name: com.mysql.cj.jdbc.Driver username: vue_pro password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#- bxg: # 农场数据源 name: vue_pro_bxg - url: jdbc:mysql://${spring.datasource.dynamic.datasource.ip}/${spring.datasource.dynamic.datasource.bxg.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true + url: jdbc:mysql://rm-2zey92ofhilzm3p4j0o.mysql.rds.aliyuncs.com:3306/${spring.datasource.dynamic.datasource.bxg.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true driver-class-name: com.mysql.cj.jdbc.Driver username: vue_pro password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-