Articles in this section

How to access SolusVM 2 database?

Applicable to:

  • SolusVM 2

Question

How to access SolusVM 2 database?

Answer

  1. Access SolusVM 2 management node via SSH
  2. Run the command:

    # docker exec -it $(docker ps -q -f name=solus_postgres | head -n1) psql -U$(docker exec $(docker ps -q -f name=solus_postgres | head -n1) env | grep POSTGRES_USER | awk -F "=" {'print $2'}) $(docker exec $(docker ps -q -f name=solus_postgres | head -n1) env | grep POSTGRES_DB | awk -F "=" {'print $2'})

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.