Server database
Team Edition supports the following internal databases:
- PostgreSQL (default)
- MariaDB
- Oracle
- SQL Server
Before you start¶
Note
This section applies only to Docker Compose deployments.
By default, the cloudbeaver-te service runs on cloudbeaver-te-common-net, while postgres runs on the isolated
cloudbeaver-te-private-net. The two services can't reach each other across these networks.
To temporarily allow access, add cloudbeaver-te-private-net to the list services.cloudbeaver-te.networks in docker-compose.yml:
cloudbeaver-te:
networks:
- cloudbeaver-te-common-net
- cloudbeaver-te-private-net # add temporarily
Then apply the change:
Warning
This exposes the internal database to the application network. Revert this change when you're done.
Accessing the database¶
-
Identify database connection parameters used by the server
Tip
Look for
CLOUDBEAVER_DB_*in the.envfile orbackend.cloudbeaver_db_*ink8s/values.yaml. -
Example
Typical PostgreSQL connection settings.
Use web client to connect:
- Host:
postgres - Port: default is
5432 - Database: default is
cloudbeaver - User: value of
CLOUDBEAVER_DB_USER - Password: value of
CLOUDBEAVER_DB_PASSWORD
Default credentials depend on your deployment configuration and may differ from standard PostgreSQL defaults.

- Host:
-
Open the
cloudbeaverdatabase. > Tip: Open theqmschema to view Query Manager data. Query history is stored in theqm_querytable.
Changing the database password¶
-
Change passwords value:
- for compose
compose/cbte/.envvalue ofCLOUDBEAVER_DB_PASSWORDvariable - for k8s in
k8s/cbte/values.yamlvalue ofbackend.cloudbeaver_db_passwordvariable
Example
CLOUDBEAVER_DB_PASSWORD=**********. - for compose
-
Login into postgres container:
- for compose from
compose/cbte/dir rundocker compose exec -it postgres psql -U postgres - for k8s with kubectl
kubectl-do exec -it postgres-*********-***** psql -U postgres
- for compose from
-
Change postgres password:
ALTER USER postgres WITH PASSWORD '**********';
-
Restart or redeploy cluster services:
- for compose in
compose/cbteexecutedocker compose up -dcommand - for k8s in
k8s/dir executehelm upgrade cloudbeaver ./cbte
- for compose in