- An external connection makes an internet round-trip, so it is much slower than internal communication. External connections are turned off by default. We recommend external connections if you are hosting only your database with us but not your front end. To connect to the database using an external connection, you must enable public access.
- An internal connection stays within our network and is thus much faster and more secure. We recommend this method if you host both your front-end and your database with Application Hosting and Database Hosting.
Internal connections are only available between applications and databases hosted with Application Hosting and Database Hosting services.
Add an internal connection
You can add internal connections from an application’s Networking page or a database’s Overview page. It doesn’t matter where you start the process; the result will be the same. To add a connection from a database to an application, go to Databases > database name > Overview > in the Connected applications section, click Add internal connection, and select the application you want to connect to. To automatically populate an application’s environment variables from the database connection details, select Add environment variables to the application. This automatically populates the environment variables from the database you’re connecting to. Select whether the variables will be available during runtime and/or the build process, and click Add internal connection. Some applications may expect environment variables (keys) with different names. You can edit the names in the list before adding the connection or edit them later on the application’s Settings page.
Add an internal connection from a database to an application in Sevalla.
Ports
The port for internal connections to an application can be defined when you add your application or within Networking > Update port. The port for internal connections to a database is 3306 and cannot be changed. For applications, Sevalla automatically sets thePORT environment variable. You do not need to define it yourself or hard-code it into the application. When an application is deployed, it is reachable on the internet on ports 80 and 443, and we route those ports to the container on the port defined by your application.
Remove an internal connection
If you need to remove a connection, go to the Database’s Overview page, and under Connected applications, click the delete (trash can) icon.
Internal connections between databases and applications.
External connections
To enable or disable external access to your database, within Databases > database name > Overview > External connection, select Enable or Disable Public access. If public access is enabled, you can use the connection details to connect to your database via the command line (CLI) or with a database tool.
Database external connections.
Change database password
You can change the database password for your internal and external connections. On the database Overview page, within Manage password, click Change password and enter a new password.
Change the database password for internal and external connections.
, & * [ ] : ' $ ` "


