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.

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, and MongoDB.

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.