PostgreSQL · MySQL · SQL Server
Browse database guides

Connect your first database in dbHydrate

Connect your first database in dbHydrate using a development server and a restricted account. Choose a recognizable connection name and learn the workspace before allowing operations that change data.

Download the correct product
On this page

01 / RESOURCES

1. Confirm the prerequisites

Choose the dbHydrate product for your database engine and confirm the current published server and operating-system support. Have the server address, database account, network route and any required certificate or SSH details ready. Use an account with only the access needed for this first connection.

02 / RESOURCES

The same workflow. The right database edition.

Choose a database product. Compare and copy within the same engine.

03 / RESOURCES

2. Set up the workspace vault

Complete vault setup and choose an unlocking method appropriate to the workstation. Store the master password through your approved process. A forgotten-password reset cannot decrypt records protected by the lost key, so do not treat reset as a recovery plan for saved work.

04 / RESOURCES

3. Enter the connection details

Add the server and account information, then select the intended database or schema scope. Discovery can help identify available objects; manual entry is available when discovery is unsuitable. Give the connection a useful name that distinguishes the environment.

05 / RESOURCES

4. Configure the supported transport

Set TLS and SSH options to match the server and network policy. Authentication options vary by engine. If certificate validation fails, check trust, hostname and configuration with the server owner rather than disabling a protection simply to complete the connection.

06 / RESOURCES

5. Test and identify the environment

Test authentication and reachability. Confirm the returned catalog belongs to the expected server, then set the environment label and appropriate protection. Labels provide context; they do not grant or restrict database privileges by themselves.

07 / RESOURCES

6. Verify a small read

Open SQL Console and run a minimal read such as the example below. Confirm the connection name and one returned value. If it fails, distinguish network, authentication and permission problems before retrying. Keep the login restricted and resolve the specific prerequisite rather than switching immediately to an administrator account.

Code example
SELECT 1 AS connection_check;

08 / RESOURCES

Confirm the database and login with a read-only query

A successful SELECT 1 checks that the session can run a statement. It does not identify the database or prove that the account can read your application tables. Run the example for your engine next and compare the returned database and login with the connection you intended to open.

These statements only read session information. The names returned depend on your server and account; there is no fixed example value to copy. A role change or impersonation can affect the reported identity. Treat it as another check alongside the server address and environment label.

For PostgreSQL, the result identifies the connected database and current role. For MySQL, DATABASE() returns the selected database and may be NULL if none is selected; CURRENT_USER() identifies the account used for authentication. For SQL Server, DB_NAME() returns the current database and SUSER_SNAME() reports the current security context.

If the database is unexpected, stop before running an application query. Correct the connection or database selection and repeat the read. Keep returned host, database and account details out of public screenshots or support messages unless they are safe to share.

Code example
-- PostgreSQL
SELECT current_database() AS database_name,
       current_user AS login_name;
Code example
-- MySQL
SELECT DATABASE() AS database_name,
       CURRENT_USER() AS login_name;
Code example
-- Microsoft SQL Server
SELECT DB_NAME() AS database_name,
       SUSER_SNAME() AS login_name;
Run a SQL query and verify an export ↗

09 / RESOURCES

Troubleshoot the connection at the failing step

Start with the exact error and the stage that failed. A reachable server, valid credentials and permission to read a table are separate prerequisites. Changing several settings at once makes the cause harder to identify.

For a support request, include the engine, app version, transport type and a redacted error. Remove passwords, connection strings, private keys and customer data. A connection label such as Commerce Development helps distinguish environments, but database privileges must still enforce the account’s access.

Troubleshoot the connection at the failing step
SymptomWhat to checkNext verification
Timeout or connection refusedServer hostname, configured port, VPN or firewall route, and whether the database service is listening.Repeat the connection test after the server owner confirms the route.
Authentication rejectedSelected authentication method, account name, credential expiry and server-side account policy.Use the intended restricted account; request the specific access it needs.
Certificate validation failedCertificate trust chain, expiry and whether the server hostname matches the certificate.Correct trust or server configuration and test with certificate validation enabled.
Connected, but the catalog is emptySelected database or schema and metadata visibility for this account.Run the identity query, then check a known authorized object with the server owner.
SELECT 1 works, but a table read failsObject qualification and read permission for the referenced database, schema and table.Try one small authorized read after resolving the specific object or permission issue.
Connection and credential handling ↗Get help with a redacted connection error ↗

Questions & answers

What is the expected result?

A tested, clearly labeled development connection opens the intended catalog and returns the small read query without requiring write privileges.

Are connection details all hidden by the vault?

Secret fields are encrypted, but names, hosts, database names and user names remain readable metadata. Avoid putting secrets in a connection label.

Sources and further reading

Workflow illustration

DevelopmentYour working environmentStagingThe selected destinationProductionCheck the protection level→CHECK THE TARGETReview the SQL.Confirm when you are ready.Engine-specific safeguardsRecorded run detailsCONTEXT BEFORE A CHANGEReview behavior depends on the database engine.