name | title | description |
---|---|---|
PlanetScale Setup Guide |
PlanetScale database connector by Fivetran | Setup Guide |
Read step-by-step instructions on how to connect PlanetScale with your destination using Fivetran connectors. |
PlanetScale Setup Guide {% typeBadge connector="planetscale" /%} {% availabilityBadge connector="planetscale" /%}
Follow these instructions to replicate your PlanetScale database to your destination using Fivetran.
NOTE: This connector is partner-built. For any questions related to PlanetScale connector and its documentation, contact PlanetScale's support team. For details on SLA, see PlanetScale's Support Overview documentation.
To connect your PlanetScale database to Fivetran, you need a PlanetScale database
Fivetran connects directly to your PlanetScale database.
IMPORTANT: You must have a Business Critical plan to use private networking.
We support the following providers:
- AWS PrivateLink - used for VPCs and AWS-hosted or on-premises services. See our AWS Private Link setup guide for details.
- GCP Private Service Connect - used for VPCs and Google-hosted or on-premises services. See our GCP Private Service Connect setup guide for details.
-
In PlanetScale, navigate to the database you want to connect to Fivetran and click the Connect button.
-
Create a new password for your main branch with read-only permissions.
-
In the Connect with dropdown, select General and leave this tab open, as you'll need to copy these credentials shortly.
Back in Fivetran, in your connector setup form, enter the connector values as follows:
-
Destination schema - this prefix applies to each replicated schema and cannot be changed once your connector is created. Note: Each replicated schema is appended with
_planetscale
at the end of your chosen name. -
Database host name - paste in the copied value for
host
. -
Database name - paste in the copied value for
database
. -
Database username - paste in the copied value for
username
. -
Database password - paste in the copied value for
password
. -
Comma-separated list of shards to sync (optional) - if your PlanetScale database is not sharded, ignore this field. If the database is sharded, by default, the PlanetScale connector will download rows from all shards in the database. To pick which shards are synced by the connector, you can optionally provide a comma-separated list of shards in the connector configuration.
-
Use replica?: In PlanetScale, VStream will connect to the primary tablet for your database, which also serves queries to your database. To lessen the load on the primary tablet, set this to
true
to make Vstream read from a replica of your database.- Please note that only PlanetScale production branches have replica tablets. If connecting to a development branch, please set
useReplica
tofalse
.
- Please note that only PlanetScale production branches have replica tablets. If connecting to a development branch, please set
-
Treat tinyint(1) as boolean (optional) - you can choose to have the connector transform tinyint(1) type columns in your database to either
true
orfalse
. -
Fivetran IPs (optional) - if your connection string was created with IP restrictions, ensure that the Fivetran IP ranges are added to the password.
-
Click Save & Test. Fivetran tests and validates our connection to your PlanetScale database. Upon successful completion of the setup tests, you can sync your data using Fivetran.
description Connector Overview
account_tree Schema Information