Database Connection
Connect a PowerSync Cloud instance to your backend database.
Create a PowerSync Cloud Instance
- In the PowerSync Dashboard Project tree, click on “Create new instance”:
- Give your instance a name, such as “Testing”.
- Under the “General” tab, you can change the default cloud region from US to EU, JP (Japan), or AU (Australia) if desired.
- Note: More cloud regions are available, contact us if you need a different region.
- Under the “DB Connections” tab, click on the + icon and select your database technology.
Each provider has their quirks when it comes to specifying connection details, so we have documented provider-specific instructions below.
Postgres Provider Specifics
Select your Postgres hosting provider for steps to connect your Postgres database to the newly created PowerSync instance:
For other providers and self-hosted databases:
MongoDB (Alpha) Specifics
- Fill in your connection details from MongoDB:
- “Name” can be any name for the connection.
- “Database name” is the database in your cluster to replicate.
- “Username” and “Password” maps to the Database user. See necessary permissions in Source Database Setup
- “URI” is your database connection string in the format
mongodb+srv://cluster0.aaaaa.mongodb.net/
. Make sure it includes the hostname.
- Click “Test Connection” and fix any errors. If have any issues connecting, reach out to our support engineers on our Discord server.
- Make sure that your database allows access to PowerSync’s IPs — see Security and IP Filtering
- Click “Save”.
PowerSync deploys and configures an isolated cloud environment for you, which can take a few minutes to complete.
Note: PowerSync automatically selects the “Beta” version of the Service when adding a MongoDB connection while MongoDB support is in alpha.
Also see:
MySQL (Alpha) Specifics
- Fill in your connection details from MySQL:
- “Name” can be any name for the connection.
- “Host” and “Database name” is the database to replicate.
- “Username” and “Password” maps to your Database user.
- Click “Test Connection” and fix any errors. If have any issues connecting, reach out to our support engineers on our Discord server.
- Make sure that your database allows access to PowerSync’s IPs — see Security and IP Filtering
- Click “Save”.
PowerSync deploys and configures an isolated cloud environment for you, which can take a few minutes to complete.
Note: PowerSync automatically selects the “Beta” version of the Service when adding a MySQL connection while MySQL support is in alpha.
Was this page helpful?