# connectdb: Test the configured PostgreSQL connection

Source: https://zotonic.com/docs/3014/connectdb-test-the-configured-postgresql-connection

URI: https://zotonic.com/id/3014

Language: en

Test the configured PostgreSQL connection.

Syntax
------

```text
bin/zotonic connectdb 
```

Requirements and effects
------------------------

Reads global database configuration and uses the configured database driver to test the connection.

This command **does not open psql** and accepts no site selection. It prints connection options, including the password, before testing. Keep the output private. A site can override global database settings; a successful result is not proof that its own connection and schema are correct.

Example
-------

```sh
bin/zotonic connectdb
```

Run commands from the Zotonic workspace root. Replace `garden` with your site name where applicable.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3014?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/3014?language=en>)
