Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to Switch DB connection in App engine at runtime

I am building a multi-tenant application where I want to keep a separate database for every tenant. For deployment, I am using Google
App Engine and for Database I am using Google Cloud Sql. While Deploying for code to App Engine I am setting DB as CommanDB which is a shared DB
and based on user login I am switching DB to tenantDB. When connected to CommanDB everything works fine but when I switch to tenanttaDB
I get a Connection timeout error.image (6).png

0 1 149
1 REPLY 1

Hello @shubhankartarka!

Welcome to the Google Cloud Community!

I noticed that you have asked the same question in Stack overflow. I would like to confirm if the comment helped you with your problem.

Let me know, thanks!

Top Solution Authors