Ver código fonte

nacos 连接 mysql8 需要添加 allowPublicKeyRetrieval=true 参数

reghao 1 mês atrás
pai
commit
2ba70144df
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      srv/nacos/docker-compose.yml

+ 1 - 0
srv/nacos/docker-compose.yml

@@ -29,6 +29,7 @@ services:
       - MYSQL_SERVICE_PORT=3306
       - MYSQL_SERVICE_USER=test
       - MYSQL_SERVICE_PASSWORD=Test_123456
+      - MYSQL_SERVICE_DB_PARAM=characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
     healthcheck:
       test: ["CMD", "curl", "-f", "http://localhost:8848/nacos/index.html"]
       interval: 15s