How to load data from Notion to TiDB
Learn how to use Airbyte to synchronize your Notion data into TiDB within minutes.


Building your pipeline or Using Airbyte
Airbyte is the only open source solution empowering data teams to meet all their growing custom business demands in the new AI era.
Building in-house pipelines
- Inconsistent and inaccurate data
- Laborious and expensive
- Brittle and inflexible
After Airbyte
- Reliable and accurate
- Extensible and scalable for all your needs
- Deployed and governed your way
Start syncing with Airbyte in 3 easy steps within 10 minutes



Take a virtual tour
Demo video of Airbyte Cloud
Demo video of AI Connector Builder
Setup Complexities simplified!
Simple & Easy to use Interface
Airbyte is built to get out of your way. Our clean, modern interface walks you through setup, so you can go from zero to sync in minutes—without deep technical expertise.
Guided Tour: Assisting you in building connections
Whether you’re setting up your first connection or managing complex syncs, Airbyte’s UI and documentation help you move with confidence. No guesswork. Just clarity.
Airbyte AI Assistant that will act as your sidekick in building your data pipelines in Minutes
Airbyte’s built-in assistant helps you choose sources, set destinations, and configure syncs quickly. It’s like having a data engineer on call—without the overhead.
What sets Airbyte Apart
Modern GenAI Workflows
Streamline AI workflows with Airbyte: load unstructured data into vector stores like Pinecone, Weaviate, and Milvus. Supports RAG transformations with LangChain chunking and embeddings from OpenAI, Cohere, etc., all in one operation.
Move Large Volumes, Fast
Quickly get up and running with a 5-minute setup that enables both incremental and full refreshes for databases of any size, seamlessly scaling to handle large data volumes. Our optimized architecture overcomes performance bottlenecks, ensuring efficient data synchronization even as your datasets grow from gigabytes to petabytes.
An Extensible Open-Source Standard
More than 1,000 developers contribute to Airbyte’s connectors, different interfaces (UI, API, Terraform Provider, Python Library), and integrations with the rest of the stack. Airbyte’s AI Connector Builder lets you edit or add new connectors in minutes.
Full Control & Security
Airbyte secures your data with cloud-hosted, self-hosted or hybrid deployment options. Single Sign-On (SSO) and Role-Based Access Control (RBAC) ensure only authorized users have access with the right permissions. Airbyte acts as a HIPAA conduit and supports compliance with CCPA, GDPR, and SOC2.
Fully Featured & Integrated
Airbyte automates schema evolution for seamless data flow, and utilizes efficient Change Data Capture (CDC) for real-time updates. Select only the columns you need, and leverage our dbt integration for powerful data transformations.
Enterprise Support with SLAs
Airbyte Self-Managed Enterprise comes with dedicated support and guaranteed service level agreements (SLAs), ensuring that your data movement infrastructure remains reliable and performant, and expert assistance is available when needed.
What our users say

Raman Singh
Predictable, straightforward pricing model that simplified budgeting and significantly reduced overall spend

Chase Zieman

“Airbyte helped us accelerate our progress by years, compared to our competitors. We don’t need to worry about connectors and focus on creating value for our users instead of building infrastructure. That’s priceless. The time and energy saved allows us to disrupt and grow faster.”

Rupak Patel
"With Airbyte, we could just push a few buttons, allow API access, and bring all the data into Google BigQuery. By blending all the different marketing data sources, we can gain valuable insights."
How to Sync to Manually
Step 1: Export Data from Notion
Begin by exporting your data from Notion. Open the Notion page or database you want to export, click on the three dots in the top-right corner, and select "Export." Choose the format that best suits your needs, such as CSV for tables or Markdown/HTML for text content. Download the exported file to your local machine.
Step 2: Prepare the CSV for Import
If your Notion data was exported as a CSV, open it using a spreadsheet program like Excel or Google Sheets. Check for any inconsistencies, such as missing headers or incorrect data types, and make necessary corrections. Ensure that the CSV structure aligns with the schema you plan to use in TiDB.
Step 3: Set Up TiDB Environment
Install and set up TiDB on your local machine or server if it is not already running. Follow the official [TiDB documentation](https://docs.pingcap.com/tidb/stable) for installation instructions. Ensure that your TiDB cluster is up and running, and you have access to the necessary credentials for database creation and data import.
Step 4: Create a Database and Table in TiDB
Access your TiDB server using a MySQL client or command-line interface. Execute SQL commands to create a new database and tables that will store your Notion data. Make sure the table schema matches the structure of your CSV files. For example:
```sql
CREATE DATABASE notion_data;
USE notion_data;
CREATE TABLE example_table (
id INT PRIMARY KEY,
name VARCHAR(255),
description TEXT
);
```
Step 5: Prepare the Data Import Script
Write a script or use command-line tools to import your CSV data into TiDB. You can use the `LOAD DATA` SQL command to import data efficiently. For instance:
```sql
LOAD DATA LOCAL INFILE '/path/to/your/file.csv'
INTO TABLE example_table
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS; -- Adjust depending on the presence of a header row
```
Step 6: Execute Data Import
Run the script or execute the `LOAD DATA` command to import your data into TiDB. Make sure you handle any errors or warnings that may occur during the import process. Verify that all data has been imported correctly by running a few `SELECT` queries on your TiDB tables.
Step 7: Verify and Clean Up
After the import, verify the integrity of your data. Check for any discrepancies or missing entries by comparing the TiDB table content with your original Notion data. Once confirmed, clean up any temporary files or scripts used during the process. Ensure that your TiDB database is performing as expected with the new data.
Following these steps will allow you to manually move data from Notion to TiDB without relying on third-party connectors or integrations.