ETIMEDOUT error when adding a MySQL credential on clod hosting, success on self-hosted locally on Docker

Describe the problem/error/question

I am trying to save a new MySQL credential to use in a test workflow. The MariaDB version 10.5 database is remotely accessible. On my local Docker n8n everything works as expected after I enter hostname, db name, db user, db password, port and connection timeout. I was even able to use the credential in a simple MySQL node to retrieve some data. But on a the cloud n8n, using the same n8n version and following the same steps, I get the error “connect ETIMEDOUT”.

What is the error message (if any)?

Couldn’t connect with these settings
connect ETIMEDOUT

Please share your workflow

No workflow yet.

Information on your n8n setup

  • n8n version: 1.83.2 (Latest Stable)
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud and Docker
  • Operating system: Docker on Windows 11

Is the mysql and self hosted on the same server/computer?

You may have to open the mysql port on the server for external devices to access it. Or other similar firewall related issues.

MySQL is hosted outside the local network. It is already accessible by external devices by whitelisting % (any) IP for Remote Database Access offered by ISP’s cPanel. This is how I can connect to it using n8n hosted locally on a dev machine. I can also access the database using DBeaver installed on my local machine. But when I try to configure the credential on the cloud n8n I get the timeout error.

If you try make the connection, open chrome/browser dev tools and see if there are any errors in console or network

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.