文档首页
MySQL 8.4 参考手册
8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

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

15.1.8 ALTER SERVER 语句15.1.8 ALTER SERVER Statement

ALTER SERVER  server_name
    OPTIONS (option [, option] ...)

修改 server_name 的服务器信息,可调整 CREATE SERVER 语句中允许的任何选项。mysql.servers 表中的相应字段将相应更新。此语句需要 SUPER 权限。Alters the server information for server_name, adjusting any of the options permitted in the CREATE SERVER statement. The corresponding fields in the mysql.servers table are updated accordingly. This statement requires the SUPER privilege.

例如,要更新 USER 选项:For example, to update the USER option:

ALTER SERVER s OPTIONS (USER 'sally');

ALTER SERVER 会导致隐式提交。参见 第 15.3.3 节,“导致隐式提交的语句”。ALTER SERVER causes an implicit commit. See Section 15.3.3, “Statements That Cause an Implicit Commit”.

ALTER SERVER 不会写入二进制日志,无论使用的是哪种日志格式。ALTER SERVER is not written to the binary log, regardless of the logging format that is in use.