Giter Site home page Giter Site logo

Comments (1)

studioego avatar studioego commented on July 23, 2024

Hmm, I checked backend.ai mgr dbshell command options.
image

bai@dhsung:~/manager$ backend.ai mgr dbshell --help
Usage: backend.ai mgr dbshell [OPTIONS] [PSQL_ARGS]...

  Run the database shell.

  All additional arguments and options except `--psql-container` and `--psql-
  help` are transparently forwarded to the psql command. For instance, you can
  use `-c` to execute a psql/SQL statement on the command line.

  Note that you do not have to specify connection-related options because the
  dbshell command fills out them from the manager configuration.

Options:
  --psql-container ID_OR_NAME  Open a postgres client shell using the psql
                               executable shipped with the given postgres
                               container. If not set or set as an empty string
                               "", it will auto-detect the psql container from
                               the halfstack. If set "-", it will use the
                               host-provided psql executable. You may append
                               additional arguments passed to the psql cli
                               command. [default: auto-detect from halfstack]
  --psql-help                  Show the help text of the psql command instead
                               of this dbshell command.
  -h, --help                   Show this message and exit.
bai@dhsung:~/manager$ backend.ai mgr dbshell --psql-container postgres-cluster-default-backendai-pg-active-1
2024-04-24 15:59:58.990 INFO ai.backend.manager.cli [2551136] using the db container postgres-cluster-default-backendai-pg-active-1 ...
psql (15.1)
Type "help" for help.

backend=#

I think that after checking docker's postgres container name, I have to enter backend.ai mgr dbshell command with --psql-container ID_OR_NAME option.

As a result, I'll have to revise the install from package guide.

from backend.ai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.