Applicable to:
- SolusVM 2
Question
How to access SolusVM 2 database?
Answer
- Access SolusVM 2 management node via SSH
- 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'})
Comments
0 commentsPlease sign in to leave a comment.