ALTER SERVERserver_nameOPTIONS (option[,option] ...)
修改 的服务器信息,可调整 server_nameCREATE SERVER 语句中允许的任何选项。mysql.servers 表中的相应字段将相应更新。此语句需要 SUPER 权限。Alters the server information for
,
adjusting any of the options permitted in the
server_nameCREATE 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.