8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

18.8 FEDERATED 存储引擎18.8 The FEDERATED Storage Engine

FEDERATED 存储引擎允许您在不使用复制或集群技术的情况下访问远程 MySQL 数据库的数据。查询本地 FEDERATED 表会自动从远程(联邦)表中获取数据。本地表不存储任何数据。The FEDERATED storage engine lets you access data from a remote MySQL database without using replication or cluster technology. Querying a local FEDERATED table automatically pulls the data from the remote (federated) tables. No data is stored on the local tables.

如果从源码构建 MySQL 时要包含 FEDERATED 存储引擎,请使用 CMake 并添加 -DWITH_FEDERATED_STORAGE_ENGINE 选项。To include the FEDERATED storage engine if you build MySQL from source, invoke CMake with the -DWITH_FEDERATED_STORAGE_ENGINE option.

FEDERATED 存储引擎在运行中的服务器中默认未启用;要启用 FEDERATED,必须使用 --federated 选项启动 MySQL 服务器二进制文件。The FEDERATED storage engine is not enabled by default in the running server; to enable FEDERATED, you must start the MySQL server binary using the --federated option.

要查看 FEDERATED 引擎的源代码,请到 MySQL 源码分发包的 storage/federated 目录下查看。To examine the source for the FEDERATED engine, look in the storage/federated directory of a MySQL source distribution.