多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
4.9 KiB

---
title: 'Import Airtable to NocoDB'
description: 'A complete import of your Airtable to any MySQL or Postgres databases within minutes'
tags: ['Bases', 'Import']
keywords: ['NocoDB', 'Airtable', 'Import Airtable', 'Airtable to NocoDB', 'Airtable to MySQL', 'Airtable to Postgres']
---
NocoDB offers a streamlined process for seamlessly transferring your Airtable database to various database management systems, including MySQL, Postgres and SQLite, in just a matter of minutes. This feature is particularly useful for users who wish to migrate their Airtable database to a more robust and scalable database management system.
:::info
Import from Airtable is in beta version. See [Importing Airtable To NocoDB](https://github.com/nocodb/nocodb/discussions/2122) for the migration notes.
:::
:::info
To proceed, you must have valid Airtable Credentials. Ensure you have access to the following information from your Airtable account:
- [API key](#retrieve-api-key) or [Personal Access Token](#create-personal-access-token)
- [Shared Base ID / URL](#retrieve-share-base-id--url)
:::
Open the `Quick Import- AIRTABLE` modal begin the import process
1. Hover over the base name in the left sidebar, click on the `...` icon to open base context menu
2. Select `Import Data` from the base context menu
3. Select `Airtable`
![import data](/img/v2/base/base-import-airtable-1.png)
Alternatively, you can also open the `Quick Import- AIRTABLE` modal from the `Base dashboard`
1. Go to your Base dashboard, click on `Import Data`
2. Select `Airtable`
![import data](/img/v2/base/base-import-from-dashboard-1.png)
![import data](/img/v2/base/base-import-from-dashboard-2.png)
Continue with the following steps on `Quick Import- AIRTABLE` modal to complete the import process:
1. Input [API key](#retrieve-api-key) / [Personal Access Token](#create-personal-access-token)
2. Input [shared Base ID / URL](#retrieve-share-base-id--url)
3. Configure [Airtable import options](#configuration-options) (Optional)
4. Click `Import`
![import data](/img/v2/base/base-import-airtable-2.png)
:::info
Wait until `Go To Dashboard` button is activated on the modal. Import details are captured in log window.
:::
![import data](/img/v2/base/base-import-airtable-3.png)
### Configuration options
1. **Import Data**: If you disable this option, only tables and views will be created (schema), excluding actual data records.
2. **Import Secondary Views**: If you disable this option, only the primary grid view for each table will be imported, omitting any secondary views.
3. **Import Rollup Fields**: If you disable this option, you can skip the import of Rollup fields.
4. **Import Lookup Fields**: If you disable this option, you can skip the import of Lookup fields.
5. **Import Attachments Fields**: If you disable this option, you can skip the import of Attachment fields, which typically store file attachments associated with records.
6. **Import Formula Fields**: Please be aware that import of formula fields from Airtable is currently not supported.
## Get Airtable Credentials
### Create Personal Access Token
Here are the steps to generate an Airtable Personal Access Token:
1. Visit the [Airtable Create Tokens](https://airtable.com/create/tokens) page and click the "Create token" button.
2. Provide a meaningful name for your token in the `Token name` field.
3. Choose the necessary access scopes, with a minimum requirement of `data.records:read`.
4. Select the specific Base you wish to access with this token.
5. Confirm your choices by clicking the `Create token` button.
6. Copy the newly generated `Personal Access Token` for your use.
For detailed information, you can refer to the [Airtable Personal Access Token guide](https://airtable.com/developers/web/guides/personal-access-tokens).
![image](/img/v2/base/pat-1.png)
![image](/img/v2/base/pat-2.png)
![image](/img/v2/base/pat-3.png)
### Retrieve API Key
- Copy your Airtable API Key from [Airtable create API key](https://airtable.com/create/apikey) page
![API Key](/img/v2/base/airtable-api-key.png)
### Retrieve Share Base ID / URL
See [here](https://support.airtable.com/hc/en-us/articles/205752117-Creating-a-base-share-link-or-a-view-share-link#basesharelink) for detailed procedures.
1. Open `Share` menu in your Project / Base
2. Open tab `Share Publicly`
3. Enable `Turn on full base access`
4. Copy generated shared base URL
![Shared base](/img/v2/base/airtable-share-base.png)
## Related articles
- [Base overview](/bases/base-overview)
- [Create an empty base](/bases/create-base)
- [Import base from Airtable](/bases/import-base-from-airtable)
- [Invite team members to work on a base](/bases/base-collaboration)
- [Share base publicly](/bases/share-base)
- [Rename base](/bases/actions-on-base#rename-base)
- [Duplicate base](/bases/actions-on-base#duplicate-base)
- [Bookmark base](/bases/actions-on-base#star-base)
- [Delete base](/bases/actions-on-base#delete-base)