docs/docs/en/integration/fdw/index.md
This feature connects to remote data tables based on the Foreign Data Wrapper of the database. Currently, it supports MySQL and PostgreSQL databases.
:::info{title="Connecting Data Sources vs Connecting External Data Tables"}
The two can also be used in combination. The former is used to establish a connection with the data source, and the latter is used for cross data-source access. For example, a certain PostgreSQL data source is connected, and a certain table in this data source is an external data table created based on FDW. :::
MySQL uses the federated engine, which needs to be activated, and supports connecting to remote MySQL and protocol-compatible databases, such as MariaDB. For more details, refer to the Federated Storage Engine documentation.
In PostgreSQL, different types of fdw extensions can be used to support different types of remote data. The currently supported extensions include:
federated. Refer to How to enable the federated engine in MySQLThen install and activate the plugin through the plugin manager
Under "Collection manager > Create collection", select "Connect to foreign data"
In the "Database Server" dropdown, select an existing database service, or "Create Database Server"
Create a database server
After selecting the database server, in the "Remote table" dropdown, select the data table you need to connect.
Configure field information
If the remote table has structural changes, you can also "Sync from remote table"
Remote table sync
Finally, display it on the interface