Stream change data from PlanetScale’s Vitess-based MySQL platform to Streamkap via the VTGate VStream service, covering keyspace, tablet type, and setup.
Prerequisites
A PlanetScale account with a database set up.
PlanetScale Setup
PlanetScale is built on Vitess, a database clustering system for horizontal scaling of MySQL. PlanetScale is using Vitess connector under the hood, enabling change data capture (CDC) for PlanetScale databases.A user can subscribe to multiple shards in a keyspace, making it a convenient tool to feed downstream CDC processes.To read and process database changes, the Connector subscribes to VTGate’s VStream gRPC service. VTGate is a lightweight, stateless gRPC server, which is part of the Vitess cluster setup. The Connector gives you the flexibility to choose to subscribe to the MASTER nodes, or to the REPLICA nodes for change events.
1. Granting Privileges
Because the Connector reads change events from the VTGate VStream gRPC server, it does not need to connect directly to MySQL instances. Therefore, no special database user and permissions are needed.
2. Enable Change Data Capture
The Connector does not require any specific configuration for use with PlanetScale. However, make sure that these are accessible to Streamkap:
PlanetScale host and its port (443)
SnapshotCurrent version of the connector does not support incremental snapshotting. By default, connector will setup with initial snapshotting mode. This means that the connector will read all the data from the specified keyspace and tables when it starts for the first time.This mode is blocking and will not allow the connector to stream changes until the initial snapshot is completed.
Streamkap Setup
Follow these steps to configure your new connector:
Hostname - IP address or hostname of the PlanetScale database server.
Port (default: 443) - port number of the PlanetScale database server.
Username - The username of the PlanetScale database.
Password - The password of the PlanetScale database.
Keyspace Name - The name of the keyspace from which to stream the changes.
Tablet Type - The type of Tablet (hence MySQL) from which to stream the changes.
Connect via SSH Tunnel: The Connector will connect to an SSH server in your network which has access to your database. This is necessary if the Connector cannot connect directly to your database.
Add Keyspace/Tables: Specify the Keyspace(s) and table(s) for capture
You can bulk upload here. The format is a simple list of keyspaces and tables, with each entry on a new row. Save as a .csv file without a header.
CDC only captures base tables, not ViewsChange Data Capture reads the MySQL binary log (binlog) via Vitess VStream, which only records changes to physical tables. Database Views are query-time computations with no physical storage—they don’t generate binlog entries.What you cannot capture: Views, temporary tables, MEMORY tables, BLACKHOLE tables, or system tables (information_schema, performance_schema).Solution: Specify only the underlying base tables that feed your views. You can recreate the view logic in your destination or transformation layer.
VIRTUAL generated columns are not streamedMySQL VIRTUAL generated columns are computed when rows are read and are not written to the binary log, so live streaming cannot capture or update their values. (STORED generated columns are written to the binary log and stream normally.)Snapshots read the table directly, so they do capture a value for VIRTUAL columns — but because streaming cannot keep it current, that value will become stale. We recommend excluding VIRTUAL generated columns from capture: in the Source’s Settings → Advanced section, set Column Selection Mode to Exclusion and add the column to the Column Exclusion List (fully-qualified, e.g. database.table.column). If you need the value at your destination, calculate it there — or with a transform — from the columns it is derived from.
Click Save.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Streamkap Docs","colors":{"primary":"#01313c","light":"#6DE796","dark":"#01313c"},"logo":{"light":"https://mintcdn.com/streamkap/IToSzJnfJcTNxve_/logo/logo-streamkap.svg?fit=max\u0026auto=format\u0026n=IToSzJnfJcTNxve_\u0026q=85\u0026s=f5d4d5beaec46cd1cb335ca6c786d512","dark":"https://mintcdn.com/streamkap/IToSzJnfJcTNxve_/logo/logo-streamkap-dark.svg?fit=max\u0026auto=format\u0026n=IToSzJnfJcTNxve_\u0026q=85\u0026s=384b263fa111a6b6d4414afdef16caab"},"favicon":"https://mintcdn.com/streamkap/3Pxl2KMoNOFpQbcD/b867534-small-icon-dark-bg.png?fit=max\u0026auto=format\u0026n=3Pxl2KMoNOFpQbcD\u0026q=85\u0026s=c4212157ac62273b386ee021a1d08587","background":{"decoration":"windows","color":{"dark":"#00313c"}},"navbar":{"links":[{"href":"https://docs.streamkap.com/login?redirect_uri=/api-reference","label":"Log In"}],"primary":{"type":"button","label":"Free Trial","href":"https://app.streamkap.com/?__hstc=157095033.ab3f92cd8f148386d7ab078bc558511c.1755622930359.1755881354597.1755883908073.4\u0026__hssc=157095033.1.1755883908073\u0026__hsfp=1551620669\u0026_gl=1*1a71a69*_gcl_au*ODAwODYxMTU0LjE3NTU2MjIxMjY.*_ga*NjYxMDkzMDMwLjE3NTU2MjIxMjY.*_ga_R90C8XW3LS*czE3NTU4ODEzNTIkbzMkZzEkdDE3NTU4ODQwNDQkajYwJGwwJGgw"}},"footer":{"socials":{"x":"https://x.com/Streamkap","linkedin":"https://www.linkedin.com/company/streamkap","website":"https://streamkap.com/"}},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"integrations":{"gtm":{"tagId":"GTM-W9SN5LK"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Free Trial","icon":"flask","href":"https://app.streamkap.com/?__hstc=157095033.ab3f92cd8f148386d7ab078bc558511c.1755622930359.1755881354597.1755883908073.4\u0026__hssc=157095033.1.1755883908073\u0026__hsfp=1551620669\u0026_gl=1*1842m2l*_gcl_au*ODAwODYxMTU0LjE3NTU2MjIxMjY.*_ga*NjYxMDkzMDMwLjE3NTU2MjIxMjY.*_ga_R90C8XW3LS*czE3NTU4ODEzNTIkbzMkZzEkdDE3NTU4ODQwNDQkajYwJGwwJGgw"},{"anchor":"Blog","icon":"rss","href":"https://streamkap.com/blog"},{"anchor":"Subscribe","icon":"file-signature","href":"https://streamkap.substack.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"streamkap","hasAudioNarration":false,"actualSubdomain":"streamkap","customDomains":["docs.streamkap.com"],"gitSource":{"type":"github","owner":"streamkap-com","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10bb2c9ffae5051c402ba6"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aa25fa42b27e727a02512c0","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"API Reference","count":266},{"language":"default","tag":"Guides","count":178},{"language":"default","tag":"Sources","count":100},{"language":"default","tag":"Destinations","count":61},{"language":"default","tag":"Agents","count":41},{"language":"default","tag":"Transforms","count":38},{"language":"default","tag":"App","count":23},{"language":"default","tag":"Topics","count":22},{"language":"default","tag":"Security","count":14},{"language":"default","tag":"Pipelines","count":14}],"searchSettings":{"maxResults":10}},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"email":"support@streamkap.com","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"ol ol{list-style-type:lower-roman!important}.dark .prose :where(a):not(:where([class~=\"not-prose\"],[class~=\"not-prose\"] *)){border-bottom:1px solid #6de796}.dark .prose :where(a:hover):not(:where([class~=\"not-prose\"],[class~=\"not-prose\"] *)){border-bottom-width:2px}"}]}
{"page":{"pagePath":"planetscale","slug":"/planetscale","pageMetadata":{"title":"PlanetScale (Vitess)","description":"Stream change data from PlanetScale's Vitess-based MySQL platform to Streamkap via the VTGate VStream service, covering keyspace, tablet type, and setup.","href":"/planetscale"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Stream change data from PlanetScale’s Vitess-based MySQL platform to Streamkap via the VTGate VStream service, covering keyspace, tablet type, and setup.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A PlanetScale account with a database set up.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`planetscale-setup`,children:`PlanetScale Setup`}),`\n`,_jsx(_components.p,{children:`PlanetScale is built on Vitess, a database clustering system for horizontal scaling of MySQL. PlanetScale is using Vitess connector under the hood, enabling change data capture (CDC) for PlanetScale databases.`}),`\n`,_jsx(_components.p,{children:`A user can subscribe to multiple shards in a keyspace, making it a convenient tool to feed downstream CDC processes.`}),`\n`,_jsxs(_components.p,{children:[`To read and process database changes, the Connector subscribes to VTGate’s VStream gRPC service. VTGate is a lightweight, stateless gRPC server, which is part of the Vitess cluster setup. The Connector gives you the flexibility to choose to subscribe to the `,_jsx(_components.code,{children:`MASTER`}),` nodes, or to the `,_jsx(_components.code,{children:`REPLICA`}),` nodes for change events.`]}),`\n`,_jsx(Heading,{level:`3`,id:`1-granting-privileges`,children:`1. Granting Privileges`}),`\n`,_jsx(_components.p,{children:`Because the Connector reads change events from the VTGate VStream gRPC server, it does not need to connect directly to MySQL instances. Therefore, no special database user and permissions are needed.`}),`\n`,_jsx(Heading,{level:`3`,id:`2-enable-change-data-capture`,children:`2. Enable Change Data Capture`}),`\n`,_jsx(_components.p,{children:`The Connector does not require any specific configuration for use with PlanetScale. However, make sure that these are accessible to Streamkap:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`PlanetScale host and its port (443)`}),`\n`]}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Snapshot`})}),_jsxs(_components.p,{children:[`Current version of the connector does not support incremental snapshotting. By default, connector will setup with `,_jsx(_components.code,{children:`initial`}),` snapshotting mode. This means that the connector will read all the data from the specified keyspace and tables when it starts for the first time.`]}),_jsx(_components.p,{children:`This mode is blocking and will not allow the connector to stream changes until the initial snapshot is completed.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`streamkap-setup`,children:`Streamkap Setup`}),`\n`,_jsx(_components.p,{children:`Follow these steps to configure your new connector:`}),`\n`,_jsx(Heading,{level:`3`,id:`1-create-the-source`,children:`1. Create the Source`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Navigate to `,_jsx(_components.a,{href:`https://app.streamkap.com/connectors/add?tab=Sources`,children:`Add Connectors`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Choose `,_jsx(_components.strong,{children:`PlanetScale`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`2-connection-settings`,children:`2. Connection Settings`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Name for your Connector`}),`\n`,_jsx(_components.li,{children:`Hostname - IP address or hostname of the PlanetScale database server.`}),`\n`,_jsxs(_components.li,{children:[`Port (default: `,_jsx(_components.code,{children:`443`}),`) - port number of the PlanetScale database server.`]}),`\n`,_jsx(_components.li,{children:`Username - The username of the PlanetScale database.`}),`\n`,_jsx(_components.li,{children:`Password - The password of the PlanetScale database.`}),`\n`,_jsx(_components.li,{children:`Keyspace Name - The name of the keyspace from which to stream the changes.`}),`\n`,_jsx(_components.li,{children:`Tablet Type - The type of Tablet (hence MySQL) from which to stream the changes.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Connect via SSH Tunnel`}),`: The Connector will connect to an SSH server in your network which has access to your database. This is necessary if the Connector cannot connect directly to your database.`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`See `,_jsx(_components.a,{href:`/ssh-tunnel`,children:`SSH Tunnel`}),` for setup instructions.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Next`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`3-keyspace-and-table-capture`,children:`3. Keyspace and Table Capture`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Add Keyspace/Tables`}),`: Specify the Keyspace(s) and table(s) for capture`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`You can bulk upload here. The format is a simple list of keyspaces and tables, with each entry on a new row. Save as a `,_jsx(_components.code,{children:`.csv`}),` file without a header.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`CDC only captures base tables, not Views`})}),_jsx(_components.p,{children:`Change Data Capture reads the MySQL binary log (binlog) via Vitess VStream, which only records changes to physical tables. Database Views are query-time computations with no physical storage—they don’t generate binlog entries.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What you cannot capture:`}),` Views, temporary tables, MEMORY tables, BLACKHOLE tables, or system tables (information_schema, performance_schema).`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution:`}),` Specify only the underlying base tables that feed your views. You can recreate the view logic in your destination or transformation layer.`]})]}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`VIRTUAL generated columns are not streamed`})}),_jsxs(_components.p,{children:[`MySQL `,_jsx(_components.a,{href:`https://dev.mysql.com/doc/refman/8.0/en/create-table-generated-columns.html`,children:`VIRTUAL generated columns`}),` are computed when rows are read and are `,_jsx(_components.strong,{children:`not`}),` written to the binary log, so live streaming cannot capture or update their values. (STORED generated columns are written to the binary log and stream normally.)`]}),_jsxs(_components.p,{children:[`Snapshots read the table directly, so they `,_jsx(_components.strong,{children:`do`}),` capture a value for VIRTUAL columns — but because streaming cannot keep it current, that value will become stale. `,_jsx(_components.strong,{children:`We recommend excluding VIRTUAL generated columns from capture:`}),` in the Source’s `,_jsx(_components.strong,{children:`Settings → Advanced`}),` section, set `,_jsx(_components.strong,{children:`Column Selection Mode`}),` to `,_jsx(_components.strong,{children:`Exclusion`}),` and add the column to the `,_jsx(_components.strong,{children:`Column Exclusion List`}),` (fully-qualified, e.g. `,_jsx(_components.code,{children:`database.table.column`}),`). If you need the value at your destination, calculate it there — or with a `,_jsx(_components.a,{href:`/transforms`,children:`transform`}),` — from the columns it is derived from.`]})]}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Save`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"PlanetScale (Vitess)","description":"Stream change data from PlanetScale's Vitess-based MySQL platform to Streamkap via the VTGate VStream service, covering keyspace, tablet type, and setup.","href":"/planetscale"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"PlanetScale Setup","slug":"planetscale-setup","depth":2,"children":[{"title":"1. Granting Privileges","slug":"1-granting-privileges","depth":3,"children":[]},{"title":"2. Enable Change Data Capture","slug":"2-enable-change-data-capture","depth":3,"children":[]}]},{"title":"Streamkap Setup","slug":"streamkap-setup","depth":2,"children":[{"title":"1. Create the Source","slug":"1-create-the-source","depth":3,"children":[]},{"title":"2. Connection Settings","slug":"2-connection-settings","depth":3,"children":[]},{"title":"3. Keyspace and Table Capture","slug":"3-keyspace-and-table-capture","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"streamkap","siteName":"Streamkap Docs","title":"PlanetScale (Vitess) - Streamkap Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-10T07:38:21.504Z","originalFileLocation":"planetscale.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Stream change data from PlanetScale\u0026#x27;s Vitess-based MySQL platform to Streamkap via the VTGate VStream service, covering keyspace, tablet type, and setup.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Streamkap Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"PlanetScale (Vitess) - Streamkap Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Stream change data from PlanetScale\u0026#x27;s Vitess-based MySQL platform to Streamkap via the VTGate VStream service, covering keyspace, tablet type, and setup.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Streamkap Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.streamkap.com/planetscale\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://streamkap.mintlify.site/_mintlify/api/og/v2?division=Sources\u0026amp;title=PlanetScale+%28Vitess%29\u0026amp;description=Stream+change+data+from+PlanetScale%27s+Vitess-based+MySQL+platform+to+Streamkap+via+the+VTGate+VStream+service%2C+covering+keyspace%2C+tablet+type%2C+and+setup.\u0026amp;theme=80a4b22fcc40d3ca49b10daf\u0026amp;signature=6da164de0885b4a2e046c05a726de94d5994ffa3aa42c5518557551f4caa7801\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"PlanetScale (Vitess) - Streamkap Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Stream change data from PlanetScale\u0026#x27;s Vitess-based MySQL platform to Streamkap via the VTGate VStream service, covering keyspace, tablet type, and setup.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://streamkap.mintlify.site/_mintlify/api/og/v2?division=Sources\u0026amp;title=PlanetScale+%28Vitess%29\u0026amp;description=Stream+change+data+from+PlanetScale%27s+Vitess-based+MySQL+platform+to+Streamkap+via+the+VTGate+VStream+service%2C+covering+keyspace%2C+tablet+type%2C+and+setup.\u0026amp;theme=80a4b22fcc40d3ca49b10daf\u0026amp;signature=6da164de0885b4a2e046c05a726de94d5994ffa3aa42c5518557551f4caa7801\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Streamkap Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#01313c\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.streamkap.com/planetscale\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/planetscale.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.streamkap.com/#organization\",\"name\":\"Streamkap Docs\",\"url\":\"https://docs.streamkap.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/streamkap/IToSzJnfJcTNxve_/logo/logo-streamkap.svg?fit=max\u0026auto=format\u0026n=IToSzJnfJcTNxve_\u0026q=85\u0026s=f5d4d5beaec46cd1cb335ca6c786d512\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.streamkap.com#website\",\"name\":\"Streamkap Docs\",\"url\":\"https://docs.streamkap.com\",\"publisher\":{\"@id\":\"https://docs.streamkap.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.streamkap.com/planetscale#webpage\",\"url\":\"https://docs.streamkap.com/planetscale\",\"name\":\"PlanetScale (Vitess)\",\"description\":\"Stream change data from PlanetScale's Vitess-based MySQL platform to Streamkap via the VTGate VStream service, covering keyspace, tablet type, and setup.\",\"dateModified\":\"2026-07-10T07:38:21.504Z\",\"isPartOf\":{\"@id\":\"https://docs.streamkap.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.streamkap.com/planetscale#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.streamkap.com/planetscale#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sources\",\"item\":\"https://docs.streamkap.com/alloydb\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PlanetScale (Vitess)\",\"item\":\"https://docs.streamkap.com/planetscale\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.streamkap.com/planetscale#article\",\"headline\":\"PlanetScale (Vitess)\",\"name\":\"PlanetScale (Vitess)\",\"description\":\"Stream change data from PlanetScale's Vitess-based MySQL platform to Streamkap via the VTGate VStream service, covering keyspace, tablet type, and setup.\",\"url\":\"https://docs.streamkap.com/planetscale\",\"mainEntityOfPage\":{\"@id\":\"https://docs.streamkap.com/planetscale#webpage\"},\"dateModified\":\"2026-07-10T07:38:21.504Z\",\"publisher\":{\"@id\":\"https://docs.streamkap.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.streamkap.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Streamkap Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Streamkap Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/planetscale.md","siteName":"Streamkap Docs","nav":{"global":{"anchors":[{"anchor":"Free Trial","icon":"flask","href":"https://app.streamkap.com/?__hstc=157095033.ab3f92cd8f148386d7ab078bc558511c.1755622930359.1755881354597.1755883908073.4\u0026__hssc=157095033.1.1755883908073\u0026__hsfp=1551620669\u0026_gl=1*1842m2l*_gcl_au*ODAwODYxMTU0LjE3NTU2MjIxMjY.*_ga*NjYxMDkzMDMwLjE3NTU2MjIxMjY.*_ga_R90C8XW3LS*czE3NTU4ODEzNTIkbzMkZzEkdDE3NTU4ODQwNDQkajYwJGwwJGgw"},{"anchor":"Blog","icon":"rss","href":"https://streamkap.com/blog"},{"anchor":"Subscribe","icon":"file-signature","href":"https://streamkap.substack.com/"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Getting Started","pages":[{"title":"Streamkap Docs","href":"/getting-started"},{"group":"Concepts","pages":[{"title":"Overview","href":"/concepts"},{"title":"What is CDC?","href":"/what-is-cdc"},{"title":"Batch vs Streaming","href":"/batch-vs-streaming-data"},{"title":"Ingestion Modes","href":"/insertsupserts"},{"title":"Schema Evolution","href":"/schema-evolution-support"},{"title":"Data Encoding \u0026 Character Sets","href":"/data-encoding"},{"title":"Heartbeat Configuration","href":"/heartbeat-configuration"},{"title":"Performance Tuning","href":"/performance-tuning"},{"title":"Metadata","href":"/metadata"},{"title":"Creating Final State Tables","href":"/creating-final-state-tables-from-insertsappend"}]},{"title":"Streamkap Support","href":"/streamkap-support"}]},{"group":"App","pages":[{"title":"Observability","href":"/observability"},{"title":"Snapshots \u0026 Backfilling","href":"/snapshots"},{"title":"Alerts","href":"/alerts"},{"title":"Projects","href":"/projects"},{"title":"Kafka Access","href":"/kafka-access"},{"title":"Consumer Groups","href":"/consumer-groups"},{"title":"Schema Registry","href":"/schema-registry"},{"title":"Pipelines","href":"/pipelines"},{"title":"Pipeline Recovery Procedures","href":"/pipeline-recovery"},{"title":"Sign Up","href":"/sign-up"},{"title":"Login","href":"/login"},{"title":"Profile","href":"/profile"},{"title":"Personal Privacy \u0026 Security","href":"/personal-privacy-security"},{"title":"Organisation Security","href":"/organisation-security"},{"title":"Users","href":"/team-management"},{"title":"Audit Logs","href":"/view-audit-logs"},{"title":"Sources","href":"/sources"},{"title":"Destinations","href":"/destinations"},{"title":"Regex Support for >100k Tables","href":"/regex-support"},{"title":"Setup SSO","href":"/setup-sso"},{"title":"Tagging","href":"/tagging"},{"title":"Topics","href":"/topics"},{"title":"Streaming Transforms","href":"/transforms-1"}]},{"group":"Troubleshooting","pages":[{"title":"Logs","href":"/logs"},{"title":"Error Reference","href":"/error-reference"},{"title":"Dead Letter Queue (DLQ)","href":"/dlq-operations"}]},{"group":"Deployment","pages":[{"title":"Deployment Options","href":"/deployment-options"},{"title":"Streamkap Cloud","href":"/streamkap-cloud"},{"group":"Bring Your Own Cloud (BYOC)","pages":[{"title":"Overview","href":"/bring-your-own-cloud-byoc"},{"title":"Azure BYOC","href":"/azure-byoc"},{"title":"AWS BYOC","href":"/aws-kafka-byoc"}]},{"title":"Disaster Recovery \u0026 Failover","href":"/disaster-recovery"}]},{"group":"Sources","pages":[{"title":"AlloyDB","href":"/alloydb"},{"group":"Db2","pages":[{"title":"Overview","href":"/ibm-db2"},{"title":"Db2 (Generic)","href":"/db2-generic"}]},{"group":"DocumentDB","pages":[{"title":"DocumentDB","href":"/documentdb"},{"title":"DocumentDB Source FAQ","href":"/documentdb-source-faq"}]},{"title":"DynamoDB","href":"/dynamodb-source"},{"title":"Elasticsearch","href":"/elasticsearch"},{"group":"Informix","pages":[{"title":"Overview","href":"/informix"},{"title":"Informix (Generic)","href":"/informix-generic"}]},{"title":"Kafka (Writing)","href":"/write-to-kafka"},{"title":"Kafka Direct","href":"/kafka-direct"},{"group":"MongoDB","pages":[{"title":"Overview","href":"/mongodb"},{"title":"MongoDB Atlas","href":"/mongodb-atlas"},{"title":"MongoDB (Generic)","href":"/mongodb-1"},{"title":"MongoDB Source FAQ","href":"/mongodb-source-faq"}]},{"group":"MySQL","pages":[{"title":"Overview","href":"/mysql"},{"title":"Amazon RDS MySQL","href":"/amazon-rds-mysql"},{"title":"Amazon RDS Aurora MySQL","href":"/amazon-rds-aurora-mysql"},{"title":"Google Cloud MySQL","href":"/google-cloud-mysql"},{"title":"Azure MySQL Database","href":"/azure-mysql-database"},{"title":"MySQL (Generic)","href":"/mysql-generic"},{"title":"MySQL Low Volume Log Rotation","href":"/mysql-low-volume-log-rotation"},{"title":"MySQL Source FAQ","href":"/mysql-source-faq"}]},{"group":"MariaDB","pages":[{"title":"Overview","href":"/mariadb"},{"title":"MariaDB (Generic)","href":"/mariadb-generic"},{"title":"Amazon RDS MariaDB","href":"/amazon-rds-mariadb"}]},{"title":"OpenSearch","href":"/opensearch"},{"group":"Oracle","pages":[{"title":"Overview","href":"/oracle"},{"title":"Amazon RDS Oracle","href":"/amazon-rds-oracle"},{"title":"Oracle (Generic)","href":"/oracle-generic"},{"title":"Oracle Source FAQ","href":"/oracle-source-faq"}]},{"group":"PostgreSQL","pages":[{"title":"Overview","href":"/postgresql"},{"title":"Amazon RDS PostgreSQL","href":"/postgresql-on-amazon-rds"},{"title":"Neon PostgreSQL","href":"/neon-postgresql-cdc"},{"title":"Amazon RDS PostgreSQL Serverless","href":"/amazon-rds-postgresql-serverless"},{"title":"Amazon RDS Aurora PostgreSQL","href":"/amazon-rds-aurora-postgresql"},{"title":"Azure PostgreSQL","href":"/postgresql-on-azure-database"},{"title":"Google Cloud SQL for PostgreSQL","href":"/google-cloud-sql-postgresql"},{"title":"Crunchy Bridge PostgreSQL","href":"/crunchy-bridge-postgresql"},{"title":"PostgreSQL","href":"/postgresql-self-hosted"},{"title":"Monitoring The PostgreSQL WAL Log","href":"/monitoring-the-postgresql-wal-log"},{"title":"PostgreSQL Source FAQ","href":"/postgresql-source-faq"}]},{"group":"Redis","pages":[{"title":"Overview","href":"/redis-source"},{"title":"Redis Source","href":"/redis-source-generic"}]},{"title":"S3 Source","href":"/s3-source"},{"group":"SQL Server","pages":[{"title":"Overview","href":"/sql-server"},{"title":"SQL Server on Amazon RDS","href":"/amazon-rds-sql-server"},{"title":"SQL Server on Google Cloud SQL","href":"/sql-server-on-google-cloud-sql"},{"title":"Azure SQL Database","href":"/sql-server-on-azure-sql-database"},{"title":"SQL Server (Generic)","href":"/sql-server-generic"},{"title":"SQL Server Source FAQ","href":"/sql-server-source-faq"}]},{"title":"Supabase","href":"/supabase"},{"group":"Vitess","pages":[{"title":"Overview","href":"/vitess"},{"title":"Vitess (Generic)","description":null,"href":"/vitess-generic"}]},{"title":"PlanetScale (Vitess)","href":"/planetscale"},{"group":"Webhook","pages":[{"title":"Webhook","description":"Receive Kafka records via HTTP POST/PUT/DELETE requests to a dynamically generated webhook endpoint","href":"/webhook"},{"title":"Zendesk Webhook","href":"/webhook-zendesk"},{"title":"Salesforce CDC","href":"/webhook-salesforce"},{"title":"Shopify Webhook","href":"/webhook-shopify"},{"title":"Stripe Webhook","href":"/webhook-stripe"}]},{"title":"Database Upgrade Guide","href":"/database-upgrade-guide"}]},{"group":"Destinations","pages":[{"group":"Apache Iceberg","pages":[{"title":"Overview","href":"/iceberg"},{"title":"AWS Glue","href":"/aws-glue"},{"title":"Apache Iceberg (Generic)","href":"/apache-iceberg"}]},{"title":"Azure Blob Storage","href":"/azure-blob-storage"},{"group":"BigQuery","pages":[{"title":"Overview","href":"/google-bigquery"},{"title":"Best Practices","href":"/google-bigquery-best-practices"}]},{"title":"ClickHouse Cloud","href":"/clickhouse"},{"title":"CockroachDB","href":"/cockroachdb"},{"title":"Databricks Delta Lake","href":"/databricks-delta-lake"},{"title":"DB2","href":"/stream-into-db2"},{"title":"Kafka (Reading)","href":"/reading-from-kafka"},{"title":"Kafka (Push)","href":"/kafka-to-kafka"},{"title":"HTTP Sink","href":"/http-sink"},{"title":"MySQL","href":"/stream-into-mysql"},{"title":"Neon","href":"/neon-destination"},{"title":"Oracle","href":"/stream-into-oracle"},{"title":"PostgreSQL","href":"/stream-into-postgresql"},{"group":"Redis","pages":[{"title":"Overview","href":"/redis-destination"},{"title":"Redis Cloud","href":"/redis-destination-cloud"},{"title":"Redis (Generic)","href":"/redis-destination-generic"}]},{"title":"Redshift","href":"/redshift"},{"title":"Snowflake","href":"/snowflake"},{"title":"SQL Server","href":"/stream-into-sqlserver"},{"title":"Starburst","href":"/starburst"},{"title":"Amazon S3","href":"/s3"},{"group":"Motherduck","pages":[{"title":"Overview","href":"/motherduck"},{"title":"MotherDuck (Native)","href":"/motherduck-native"},{"title":"MotherDuck (S3)","href":"/motherduck-s3"}]},{"title":"Cloudflare R2","href":"/r2"},{"title":"Weaviate","href":"/weaviate"},{"title":"Pinecone","href":"/pinecone"}]},{"group":"Transformation","pages":[{"group":"Transforms","pages":[{"title":"Overview","href":"/transforms"},{"title":"Transform Ordering","href":"/transform-ordering"},{"title":"Transform / Filter Records","href":"/transform-filter-records"},{"title":"Enrich","href":"/transform-enrich"},{"title":"Join","href":"/transform-join"},{"title":"Enrich (Async)","href":"/transform-enrich-async"},{"title":"Fan Out","href":"/transform-fanout"},{"title":"Transform Examples","href":"/transform-examples"},{"title":"TypeScript Development Kit","href":"/transform-typescript-development-kit"},{"title":"Schema Transforms Supported Types","href":"/transform-list-of-data-types"}]}]},{"group":"Streaming Agents","pages":[{"title":"Streaming Agents","href":"/streaming-agents"},{"title":"Connections","href":"/streaming-agents-connections"},{"title":"Build an Agent","href":"/streaming-agents-build"},{"title":"Manage Agents","href":"/streaming-agents-manage"},{"title":"Knowledge Bases","href":"/streaming-agents-knowledge-bases"},{"title":"Agent Observability","href":"/streaming-agents-observability"}]},{"group":"Usage","pages":[{"title":"Billing \u0026 Usage","href":"/usage"}]},{"group":"Security","pages":[{"group":"Connection Options","pages":[{"title":"Overview","href":"/connection-options"},{"title":"Streamkap IP Addresses","href":"/streamkap-ip-addresses"},{"title":"SSH Tunnel","href":"/ssh-tunnel"},{"title":"AWS Private Link","href":"/aws-private-link"},{"title":"VPN","href":"/vpn"},{"title":"Streamkap Encryption","href":"/streamkap-encryption"},{"title":"AWS Cross-Account IAM Setup","href":"/aws-cross-account-iam"}]},{"title":"Sub Accounts","href":"/sub-accounts"},{"title":"Security Posture","href":"/security-posture"},{"title":"Audit Logs","href":"/audit-logs"},{"title":"Federated Authentication and SSO","href":"/sso"},{"title":"SAML IDP Setup","href":"/saml-idp-setup"},{"title":"OpenID connect - IDP setup","href":"/openid-connect-idp-setup"},{"title":"Database Connectivity SSL Certificate Management Guide","href":"/connector-security-ssl"}]},{"group":"Developer Tools","pages":[{"title":"Overview","href":"/api"},{"title":"Agents","href":"/agents"},{"title":"Project Keys","href":"/project-keys"},{"title":"API Tokens","href":"/api-tokens"},{"title":"API Quickstart","href":"/api-quickstart"},{"title":"MCP Server","href":"/mcp-server"},{"title":"CLI","href":"/cli"}]},{"group":"Terraform","pages":[{"title":"Getting Started","href":"/streamkap-provider-for-terraform"},{"title":"Installing Terraform","href":"/terraform-installation"},{"title":"Configuration","href":"/terraform-configuration"},{"title":"Resource Reference","href":"/terraform-resources"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/authentication/access-token"}]}]},"basePath":"","title":"PlanetScale (Vitess) - Streamkap Docs","deploymentId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","buildId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","dynamics":[],"chunks":[]}