How can i connect to my database with a shared hosting plan - from external source?

  • updated
  • Answered

Hi, first off all i'm getting interested in buying 
Shared hosting plan for 1 year, which is the "Power plan"
but before that i'm getting a lot of doubts about a database connection
so i'll make two basic questions:

Before the questions, Take notes:
1)
I'm planning to use inmotion hosting "Power plan" shared hosting, NOT VPS, NOT dedicated servers
2)I'm planning to use inmotion hosting databases from external sources like for example, from AWS lambda with node.js
for certain (mandatory) reasons,

1-How can i connect to an inmotion hosting database with the shared hosting plan from a external server from amazon web services?
For example, i've coded a software and deployed it to aws lambda, but now i want to connect from an aws lambda server to an inmotion hosting database with the shared hosting plan.
How can i get access to that database?

2-What is the connection limit from a database with shared hosting plan?

¡Thanks for reading!
And i need help ASAP before buying it!

Pinned replies
Ronnie H.
  • Answer
  • Answered

Hello! I checked with one of our senior Support Technicians, and confirmed that you should be able to do all of this by setting up a remote MySQL connection in cPanel


The database connection limit on shared accounts would be 20. Hope that helps!

IPR0310
Quote from JT S.

You'll likely need to whitelist the IPs you know will be used.

Ok, thanks!

JT S.
Quote from IPR0310

Ok thanks, so another question, i benchmarked that aws lambda everytime will execute from differnts IP's 
so will it be a problem in the future?

Tl DR: AWS lambda currently change's it's IP everytime it gets executed, will it be a problem?

You'll likely need to whitelist the IPs you know will be used.

IPR0310
Quote from Ronnie H.

Hello! I checked with one of our senior Support Technicians, and confirmed that you should be able to do all of this by setting up a remote MySQL connection in cPanel


The database connection limit on shared accounts would be 20. Hope that helps!

Ok thanks, so another question, i benchmarked that aws lambda everytime will execute from differnts IP's 
so will it be a problem in the future?

Tl DR: AWS lambda currently change's it's IP everytime it gets executed, will it be a problem?

Ronnie H.
  • Answer
  • Answered

Hello! I checked with one of our senior Support Technicians, and confirmed that you should be able to do all of this by setting up a remote MySQL connection in cPanel


The database connection limit on shared accounts would be 20. Hope that helps!