Connect to Airbyte
Only Airbyte Open Source supports the PlanetScale data source. In this section, you’ll learn how to set up Airbyte and connect your PlanetScale source.Requirements
- A PlanetScale database
- Docker Desktop (Docker terms apply)
Set up Airbyte locally
Install Docker Desktop.
Follow the related installation instructions included within the Airbyte Quickstart Documentation.
Open Airbyte in the browser at http://localhost:8000.
Set up PlanetScale source
Now that Airbyte is running locally, let’s set up the custom PlanetScale source.
You can find the PlanetScale Airbyte Source Dockerhub release page here.

Fill in PlanetScale connection information
You’re now ready to connect your PlanetScale database to Airbyte.Fill in the “Set up the source” values as follows:
- Name: Any name of your choice
- Source type: Select “PlanetScale”
- Host: Paste in the copied value for
host - Database: Paste in the copied value for
database - Username: Paste in the copied value for
username - Password: Paste in the copied value for
password

You can also provide some optional values:
You can see the PlanetScale airbyte-source README for more details on these options.
- Replicas: Select whether or not you want to collect data from replica nodes.
- Shards: Map your shards.
- Starting GTIDs: Start replication from a specific GTID per keyspace shard.

Choose your destination
With the connection complete, you can now choose your destination.
Each destination should have a Setup Guide linked on its destination setup page.
Configure a connection
Now to get the connection fully set up. Click on “Connections” on the left side bar. If you have not yet set up any connectors, you should see this:
On the “Define destination” page, select the destination you want to sync your PlanetScale data to.
For this demo, we are using a CSV destination.

Also on this page, you will need to select the specific tables and columns you want to sync. For each, choose what type of sync mode you’d like to use for each source table.

- Incremental — Incremental sync pulls only the data that has been modified/added since the last sync. We use Vitess VStream to track the stopping point of the previous sync and only pull any changes since then.
- Full refresh — Full refresh pulls all data at every scheduled sync frequency.
On the “Configure connection” page, choose a sync frequency, which is how often we will connect to your PlanetScale database to download data.

Handling schema changes
Airbyte will not automatically detect when you make schema changes to your PlanetScale database. If you drop a column, your sync should throw an error as it looks for a column that doesn’t exist. However, if you add a column, the sync will continue without any errors. Airbyte will be unaware of the new column altogether. This is known as schema drift. Whenever you perform a schema change, you need to notify Airbyte of it:In the Airbyte dashboard, click “Connections”, select the connection, then navigate to the “Schema” tab.
Stopping Airbyte
At any point, you can disable any incremental or full syncs by going to the ‘Connection’ settings page and clicking ‘Delete this connection’. This will not touch any of the source or destination data, but will prevent Airbyte from doing any further operations.



