8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

MySQL 8.4 参考手册 / 25 MySQL NDB 集群 8.4 / 25.4 NDB 集群的配置
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

25.4 NDB 集群的配置25.4 Configuration of NDB Cluster

作为 NDB 集群一部分的 MySQL 服务器与普通(非集群)MySQL 服务器在一个主要方面不同,即它使用NDB存储引擎。该引擎有时也被称为NDBCLUSTER,但更推荐使用NDB。A MySQL server that is part of an NDB Cluster differs in one chief respect from a normal (nonclustered) MySQL server, in that it employs the NDB storage engine. This engine is also referred to sometimes as NDBCLUSTER, although NDB is preferred.

为了避免不必要的资源分配,服务器默认配置为禁用NDB存储引擎。要启用NDB,必须修改服务器的my.cnf配置文件,或者使用--ndbcluster选项启动服务器。To avoid unnecessary allocation of resources, the server is configured by default with the NDB storage engine disabled. To enable NDB, you must modify the server's my.cnf configuration file, or start the server with the --ndbcluster option.

这个 MySQL 服务器是集群的一部分,因此它也必须知道如何访问管理节点以获取集群配置信息。默认行为是在 localhost 上查找管理节点。然而,如果需要指定它的位置在其他地方,可以在 my.cnf 中进行配置,或者使用 mysql 客户端。在 NDB 存储引擎可用之前,至少必须有一个管理节点在运行,同时也要运行任何所需的数据节点。This MySQL server is a part of the cluster, so it also must know how to access a management node to obtain the cluster configuration data. The default behavior is to look for the management node on localhost. However, should you need to specify that its location is elsewhere, this can be done in my.cnf, or with the mysql client. Before the NDB storage engine can be used, at least one management node must be operational, as well as any desired data nodes.

有关 --ndbcluster 及其他 mysqld 针对 NDB Cluster 的选项的更多信息,请参见 第 25.4.3.9.1 节,“NDB Cluster 的 MySQL 服务器选项”。For more information about --ndbcluster and other mysqld options specific to NDB Cluster, see Section 25.4.3.9.1, “MySQL Server Options for NDB Cluster”.

有关安装 NDB Cluster 的一般信息,请参见 第 25.3 节,“NDB Cluster 安装”。For general information about installing NDB Cluster, see Section 25.3, “NDB Cluster Installation”.