When connecting to my database I get a Connection Timed Out error

A Connection Timed Out error occurs when the database’s firewall doesn’t allow you to connect to the database from your local machine or resource. This is usually because your machine isn’t included in your database’s trusted sources.

The open Trusted Sources section of the settings page

If you are getting this error, check that you have added the machine or resource you are connecting from to the database’s list of trusted sources. To check your database’s trusted sources, see the following guides for PostgreSQL, MySQL, Redis, MongoDB, Kafka, and OpenSearch.

Verify your connection string and add your local machine to the database cluster’s trusted sources.
Prepend your connection string with your database client.
Check for typos and formatting errors in the connection string.