Create a new PostgreSQL connection in DBeaver using the built-in JDBC driver and a valid connection string.
Install DBeaver (Community or Enterprise), ensure PostgreSQL is running and accessible, and have the host, port, database name, username, and password ready.
From DBeaver’s main window, click New Connection (plug icon). In the list of drivers, select PostgreSQL and press Next.
Enter Host, Port (default 5432), Database, User, and Password.Leave Driver as the bundled PostgreSQL JDBC driver unless you need a custom version.
Use jdbc:postgresql://<host>:<port>/<database>
. Advanced parameters (SSL, timeouts) go after a ?
. Example appears below.
Click Test Connection. If successful, press Finish. DBeaver stores the profile and opens a new SQL editor tab.
In the editor, paste the example query and hit Ctrl + Enter (Cmd + Enter on macOS).Results appear in the grid, ready for filtering or export.
Enable SSL in the driver properties, avoid saving plaintext passwords by using DBeaver’s secure storage, and grant the connecting role read-only privileges when possible.
Right-click the connection, choose Generate SQL > DDL to export driver properties, or share the .dbeaver-data-sources.xml
entry along with passwords kept out of SCM.
.
Yes. In the connection settings, open the SSH tab, enable Use SSH Tunnel, and supply the bastion host, port, user, and private key.
Right-click the connection > Edit Connection > Main tab and change the Database field, or open a new connection with the desired DB.
The first time you select PostgreSQL, DBeaver fetches the latest compatible JDBC driver. Approve the download; it occurs once per version.