Skip to content

链接数据库失败  #6

Description

@xcfdszzr
  docker run --name torna --restart=always \
    -p 7700:7700 \
    -e JAVA_OPTS="-server -Xms1024m -Xmx2048m" \
    -v /home/bgyfw/torna/application.properties:/torna/config/application.properties \
    -d registry.cn-hangzhou.aliyuncs.com/tanghc/torna:1.26.0  

image

    # Server port
    server.port=7700
    
    # MySQL host
    mysql.host=10.10.171.49:3306
    # Schema name
    mysql.schema=torna
    # Make sure the account can run CREATE/ALTER SQL
    mysql.username=root
    mysql.password=root


   按照文档配置数据库 但是数据库就是连不上,

image

  直接下载源码到idea 去跑,能启动,但是用docker 部署就不行

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions