25.5.11 NDB 表删除 — ndb_drop_table
ndb_drop_table 删除指定的NDB 表。如果您尝试使用该命令删除除NDB以外的存储引擎创建的表,操作将失败,并返回错误723: 无法找到该表。这项操作非常快速,在某些情况下,可以比使用 MySQLDROP TABLE语句对 NDB 表快得多。
ndb_drop_table -c connection_string tbl_name -d db_name
可以与ndb_drop_table一起使用的选项显示在以下表格中。额外描述随后表格。
-
Command-Line Format --character-sets-dir=path包含字符集的目录。
-
Command-Line Format --connect-retries=#Type 整数 Default Value 12Minimum Value 0Maximum Value 12连接失败重试的次数。
-
Command-Line Format --connect-retry-delay=#Type 整数 Default Value 5Minimum Value 0Maximum Value 5连接管理服务器失败后等待的秒数。
-
Command-Line Format --connect-string=connection_stringType 字符串 Default Value [none] -
Command-Line Format --core-file错误时写入核心文件;用于调试。
-
--database,-dCommand-Line Format --database=&nameType String Default Value &TEST_DB存储表所在数据库的名称。
-
Command-Line Format --defaults-extra-file=&pathType String Default Value [none]在读取全局文件后,读取给定的文件。
-
Command-Line Format --defaults-file=&pathType String Default Value [none]从给定的文件中只读取默认选项。
-
Command-Line Format --defaults-group-suffix=&stringType String Default Value [none]也读取concat(组,后缀)中的组。
-
Command-Line Format --help显示帮助文本并退出。
-
Command-Line Format --login-path=&pathType String Default Value [none]从登录文件中读取给定的路径。
-
Command-Line Format --no-login-paths跳过从登录路径文件中读取选项。
-
Command-Line Format --ndb-connectstring=connection_stringType String Default Value [none]设置连接字符串,以便连接到ndb_mgmd。语法:
[nodeid=。覆盖了id];][host=]hostname[:port]NDB_CONNECTSTRING和my.cnf中的条目。 -
Command-Line Format --ndb-mgm-tls=levelType 枚举 Default Value relaxedValid Values relaxedstrict设置管理服务器连接所需的TLS支持级别;可以是
relaxed或strict。relaxed(默认)表示尝试建立TLS连接,但不要求成功;strict表示需要TLS连接以进行连接。 -
Command-Line Format --ndb-mgmd-host=connection_stringType 字符串 Default Value [none] -
Command-Line Format --ndb-nodeid=#Type 整数 Default Value [none]将节点ID设置为该节点,覆盖
--ndb-connectstring中设置的任何ID。 -
--ndb-optimized-node-selectionCommand-Line Format --ndb-optimized-node-选择启用事务节点选择优化。默认启用,可以使用
--skip-ndb-optimized-node-选择来禁用。 -
Command-Line Format --ndb-tls-search-path=列表Type 路径名称 Default Value (Unix) $HOME/ndb-tlsDefault Value (Windows) $HOMEDIR/ndb-tls指定搜索CA文件的目录列表。Unix 平台上,目录名称使用冒号
:分隔;Windows 系统上,使用分号;作为分隔符。目录引用可以是相对或绝对路径,可以包含一个或多个环境变量,每个变量以前缀的美元符号$表示,并在使用时展开。搜索从左侧命名目录开始,自左向右继续直到找到文件。空字符串表示空搜索路径,这将导致所有搜索失败。包含单个点的字符串
.表示搜索路径限制于当前工作目录。如果未提供搜索路径,则使用编译时默认值。这取决于平台:在 Windows 上,这是
\ndb-tls;在其他平台(包括 Linux)上,这是$HOME/ndb-tls。可以通过编译 NDB 集群使用-DWITH_NDB_TLS_SEARCH_PATH来覆盖默认值。 -
Command-Line Format --no-defaults不从任何选项文件中读取默认选项,除了登录文件。
-
Command-Line Format --print-defaults打印程序参数列表并退出。
-
Command-Line Format --usage显示帮助文本并退出;与
--help相同。 -
Command-Line Format --version显示版本信息并退出。