I’m working on developing a chat assistant, where the backend is built on n8n Cloud using a set of AI agents. One of these agents, the SQL agent, is responsible for converting natural language questions into SQL queries, fetching relevant data, and providing human-readable answers. Previously, we used a publicly accessible MySQL database, and everything worked well. However, the database has now been migrated to a private subnet, which is not accessible via the internet or n8n Cloud.
What is the best possible solution to access a MySQL database hosted in a private subnet through n8n Cloud? Are there any recommended approaches or workarounds to make this connection securely and efficiently?