Looking for the 2.x connector? See Debezium connector for PlanetScale (archived).
Install Java
- First, you’ll need Java 21 installed on your machine. You can find this at https://www.oracle.com/java/technologies/downloads/.
Running standalone in Debezium Server
Debezium Server is a standalone application that can test a Debezium connector end-to-end by hosting the Debezium core as an in-process library and pass data from the source to the sink.Configure the Debezium connector for PlanetScale
Editserver/ps.properties with your configuration.
In this example config, we are going to have the sink send HTTP requests to webhook.site.
Go to http://webhook.site to get your own endpoint.
Place the sample config below in server/ps.properties, replacing the following placeholders:
<webhook>with your webhook.site endpoint.<planetscale-database-name>with your PlanetScale database name.<planetscale-hostname>with your PlanetScale connection string hostname.<planetscale-username>with your PlanetScale connection string username.<planetscale-password>with your PlanetScale connection string password.
Run it
Once the config is set, you can start it by runningmake -C server run
Any existing rows in any table of <planetscale-database-name> will show up as events in your webhook.site endpoint. Adding/modifying/deleting rows will also show up as events in your endpoint.

