随笔 - 746  文章 - 0  评论 - 39  阅读 - 79万

Mysql:as of 8.0.14+:--admin-address、--admin-port、--create-admin-listener-thread

 

【不指定】该--admin-address选项(系统变量),则不会起该管理监听!!!

 

  • admin_address

    PropertyValue
    Command-Line Format --admin-address=addr
    Introduced 8.0.14
    System Variable admin_address
    Scope Global
    Dynamic No
    SET_VAR Hint Applies No
    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 a bind_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 the bind_address system variable that binds the server to an address for ordinary client connections, but with these differences:

  • admin_port

    PropertyValue
    Command-Line Format --admin-port=port_num
    Introduced 8.0.14
    System Variable admin_port
    Scope Global
    Dynamic No
    SET_VAR Hint Applies No
    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 if admin_address is not specified because in that case the server maintains no administrative network interface.

  • create_admin_listener_thread

    PropertyValue
    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 Applies No
    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 if admin_address is not specified because in that case the server maintains no administrative network interface.

 

posted on   jinzhenshui  阅读(542)  评论(0编辑  收藏  举报
编辑推荐:
· 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)

点击右上角即可分享
微信分享提示