Skip to main content
If you encounter errors connecting database integrations (Postgres, MySQL, MariaDB, MongoDB, SQL Server) from Prod AI, check the following conditions / scenarios:

Correct settings for:

  • Host/IP address - Results in a getaddrinfo ENOTFOUND error when the hostname is incorrect.
  • Database name - Specify the database name, not the database instance identifier. Otherwise, Prod AI will report an Unknown database error.
  • Username and Password - Invalid credentials result in Access denied or password authentication failed for user errors.

Inbound access blocked

Is there a firewall blocking access to the database? On Dedicated Cloud, make sure your VPC security groups or firewall rules allow inbound traffic from your Prod AI data plane’s IP addresses. On Managed BYOC, verify that the data plane running in your AWS account has network routing and security group access to the database. Expect to see Connection timeout: failed to create socket, timeout expired, or similar errors when the database instance is not accessible from Prod AI.

Server listening internally only

If you’re running your own database server, you may need to configure it to accept remote connections, instead of listening locally on its network interfaces. If the latter is true, then you can configure the server to listen on all interfaces by editing the database config file and setting the bind / listening address accordingly (for example bind_address = 0.0.0.0 for MySQL or listen_addresses = '*' for Postgres).

Testing with self-hosted data plane using localhost

For Docker containers, localhost inside a container doesn’t mean the same from the context of the host where the container is running. As such, you’ll see ECONNREFUSED errors if you’ve specified localhost in the integration form. Instead, use host.docker.internal in the Prod AI integration form configuration. More on this in the Docker docs here.