Skip to content

Creating a Connection

This guide walks you through creating a database connection in DataRecs.

  • A DataRecs account with access to a workspace.
  • Network connectivity from DataRecs to your database (your admin may need to allowlist DataRecs egress IPs).
  • Database credentials with read access.
  1. Navigate to Connections in the sidebar.
  2. Click New Connection.
  3. Select your database type (e.g. MySQL, PostgreSQL, Oracle, DB2).
  4. Fill in the connection details:
    • Name — a friendly label for this connection.
    • Host — the database hostname or IP.
    • Port — the database port.
    • Database — the schema/database name.
    • Username and Password.
  5. Click Test Connection to validate.
  6. Once the test passes, click Save.
  1. DataRecs validates connectivity by opening a test connection to your database.
  2. Credentials are envelope-encrypted and stored in HashiCorp Vault.
  3. A Kubernetes Network Policy is created to allow egress traffic to your database host.
IssueSolution
Connection timeoutVerify your database is reachable from DataRecs. Check firewall rules and allowlisted IPs.
Authentication failedDouble-check username and password. Ensure the user has SELECT privileges.
SSL requiredAdd --ssl flag (CLI) or set "ssl": true in the connection config.