#!/usr/bin/env bash
docker run -v /data/odc/log:/opt/odc/log -v /data/odc/data:/opt/odc/data
-d -i --net host --cpu-period 100000 --cpu-quota 400000 --memory 8G --name “odc”
-e “DATABASE_HOST=10.1.1.1”
-e “DATABASE_PORT=3306”
-e “DATABASE_USERNAME=odc_rw”
-e “DATABASE_PASSWORD=xx”
-e “DATABASE_NAME=odc”
-e “ODC_PROFILE_MODE=alipay”
-e “ODC_ADMIN_INITIAL_PASSWORD=xx”
oceanbase/odc:4.3.2_bp1
确认支持mysql吗?
如下错误:
Caused by: org.springframework.jdbc.datasource.init.UncategorizedScriptException: Failed to execute database script; nested exception is org.springframework.jdbc.CannotGet
JdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLTransientConnectionException: Could not connect to 10.1.1.1:3306 : Malformed
communication packet.