Browse Source

pro mysql ip

zyh
小久哥 3 years ago
parent
commit
d26d0a4ae5
  1. 7
      yudao-server/src/main/resources/application-prod.yaml

7
yudao-server/src/main/resources/application-prod.yaml

@ -44,21 +44,22 @@ spring:
test-on-return: false test-on-return: false
primary: master primary: master
datasource: datasource:
ip: rm-2zey92ofhilzm3p4j.mysql.rds.aliyuncs.com:3306
master: master:
name: ruoyi_pro name: ruoyi_pro
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true 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
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
username: vue_pro username: vue_pro
password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#- password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-
slave: # 模拟从库,可根据自己需要修改 slave: # 模拟从库,可根据自己需要修改
name: ruoyi_pro name: ruoyi_pro
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true 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
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
username: vue_pro username: vue_pro
password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#- password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-
bxg: # 农场数据源 bxg: # 农场数据源
name: ruoyi_pro_bxg name: ruoyi_pro_bxg
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.bxg.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true 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
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
username: vue_pro username: vue_pro
password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#- password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-

Loading…
Cancel
Save