Mysql:as of 8.0.14+:--admin-address、--admin-port、--create-admin-listener-thread
【不指定】该--admin-address选项(系统变量),则不会起该管理监听!!!
-
Property Value Command-Line Format --admin-address=addr
Introduced 8.0.14 System Variable admin_address
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type String The IP address on which to listen for TCP/IP connections on the administrative network interface (see Section 8.12.4.1, “How MySQL Handles Client Connections”). There is no default
admin_address
value. If this variable is not specified at startup, the server maintains no administrative interface. The server also has abind_address
system variable for configuring regular (nonadministrative) client TCP/IP connections. See Section 8.12.4.1, “How MySQL Handles Client Connections”.If
admin_address
is specified, its value must satisfy these requirements:-
The value must be a single IPv4 address, IPv6 address, or host name.
-
The value cannot specify a wildcard address format (
*
,0.0.0.0
, or::
).
An IP address can be specified as an IPv4 or IPv6 address. If the value is a host name, the server resolves the name to an IP address and binds to that address. If a host name resolves to multiple IP addresses, the server uses the first IPv4 address if there are any, or the first IPv6 address otherwise.
The server treats different types of addresses as follows:
-
If the address is an IPv4-mapped address, the server accepts TCP/IP connections for that address, in either IPv4 or IPv6 format. For example, if the server is bound to
::ffff:127.0.0.1
, clients can connect using--host=127.0.0.1
or--host=::ffff:127.0.0.1
. -
If the address is a “regular” IPv4 or IPv6 address (such as
127.0.0.1
or::1
), the server accepts TCP/IP connections only for that IPv4 or IPv6 address.
If binding to the address fails, the server produces an error and does not start.
The
admin_address
system variable is similar to thebind_address
system variable that binds the server to an address for ordinary client connections, but with these differences:-
bind_address
permits multiple addresses.admin_address
permits a single address. -
bind_address
permits wildcard addresses.admin_address
does not.
-
-
Property Value Command-Line Format --admin-port=port_num
Introduced 8.0.14 System Variable admin_port
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type Integer Default Value 33062
Minimum Value 0
Maximum Value 65535
The TCP/IP port number to use for connections on the administrative network interface (see Section 8.12.4.1, “How MySQL Handles Client Connections”). Setting this variable to 0 causes the default value to be used.
Setting
admin_port
has no effect ifadmin_address
is not specified because in that case the server maintains no administrative network interface.
-
Property Value Command-Line Format --create-admin-listener-thread[={OFF|ON}]
Introduced 8.0.14 System Variable create_admin_listener_thread
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type Boolean Default Value OFF
Whether to use a dedicated listening thread for client connections on the administrative network interface (see Section 8.12.4.1, “How MySQL Handles Client Connections”). The default is to implement the administrative interface using the listener thread used for ordinary connections.
Depending on factors such as platform type and workload, you may find one setting for this variable yields better performance than the other setting.
Setting
create_admin_listener_thread
has no effect ifadmin_address
is not specified because in that case the server maintains no administrative network interface.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)