Rechercher dans le manuel MySQL
20.5.5.2 X Plugin System Variables and Options
The following command options configure X Plugin:
-
Property Value Command-Line Format --mysqlx[={OFF|ON}]
Introduced 8.0.11 System Variable mysqlx
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type Boolean Default Value ON
Specifies whether the X Plugin should be disabled. Defaults to
ON
, set toOFF
to disable X Plugin. -
Property Value Command-Line Format --mysqlx-bind-address=#
System Variable mysqlx_bind_address
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type String Default Value *
Specifies the network address which X Plugin uses for connections.
By default X Plugin listens for connections on a single IPv4 TCP/IP network socket. Use this option to configure where X Plugin listens for connections, such as binding to an IPv6 address, all IPv4 and IPv6 addresses or a default IPv6 address with a fallback IPv4 address.
X Plugin treats different types of addresses as follows:
If the address is
*
, X Plugin accepts TCP/IP connections on all server host IPv6 and IPv4 interfaces if the server host supports IPv6, or accepts TCP/IP connections on all IPv4 addresses otherwise. Use this address to permit both IPv4 and IPv6 connections on all server interfaces. This value is the default.If the address is
0.0.0.0
, X Plugin accepts TCP/IP connections on all server host IPv4 interfaces. This value is the default.If the address is
::
, X Plugin accepts TCP/IP connections on all server host IPv4 and IPv6 interfaces.If the address is
*
, X Plugin accepts TCP/IP connections on all server host IPv6 and IPv4 interfaces if the server host supports IPv6, or accepts TCP/IP connections on all IPv4 addresses otherwise. Use this address to permit both IPv4 and IPv6 connections for X Plugin.If the address is an IPv4-mapped address, X Plugin accepts TCP/IP connections for that address, in either IPv4 or IPv6 format. For example, if X Plugin is bound to
::ffff:127.0.0.1
, a client such as MySQL Shell 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
), X Plugin accepts TCP/IP connections only for that IPv4 or IPv6 address.
--mysqlx-connect-timeout[=
value
]Property Value Command-Line Format --mysqlx-connect-timeout=#
System Variable mysqlx_connect_timeout
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 30
Minimum Value 1
Maximum Value 1000000000
Number of seconds X Plugin waits for the first packet to be received from newly connected clients. The X Plugin equivalent of
connect_timeout
.--mysqlx-idle-worker-thread-timeout[=
value
]Property Value Command-Line Format --mysqlx-idle-worker-thread-timeout=#
System Variable mysqlx_idle_worker_thread_timeout
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 60
Minimum Value 0
Maximum Value 3600
Time in seconds after which an idle worker thread is terminated.
--mysqlx-interactive-timeout=
value
]Property Value Command-Line Format --mysqlx-interactive-timeout=#
Introduced 8.0.4 System Variable mysqlx_interactive_timeout
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 28800
Minimum Value 1
Maximum Value 2147483
Default value of the
mysqlx_wait_timeout
session variable for interactive clients.--mysqlx-max-allowed-packet[=
value
]Property Value Command-Line Format --mysqlx-max-allowed-packet=#
System Variable mysqlx_max_allowed_packet
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 1048576
Minimum Value 512
Maximum Value 1073741824
Maxmum size of a network packet that X Plugin can process.
--mysqlx-max-connections[=
value
]Property Value Command-Line Format --mysqlx-max-connections=#
System Variable mysqlx_max_connections
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 100
Minimum Value 1
Maximum Value 65535
Maximum number of concurrent client connections the X Plugin can accept. When modifying this variable, if the new value is smaller than the current number of connections, the new limit is only taken into account for new connections.
--mysqlx-min-worker-threads[=
value
]Property Value Command-Line Format --mysqlx-min-worker-threads=value
System Variable mysqlx_min_worker_threads
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 2
Minimum Value 1
Maximum Value 100
The minimum number of worker threads the X Plugin uses for handling client requests.
-
Property Value Command-Line Format --mysqlx-port=#
System Variable mysqlx_port
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type Integer Default Value 33060
Minimum Value 1
Maximum Value 65535
Specifies the port where the X Plugin listens for connections. The equivalent of
port
for X Plugin. --mysqlx-port-open-timeout[=
value
]Property Value Command-Line Format --mysqlx-port-open-timeout=#
System Variable mysqlx_port_open_timeout
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type Integer Default Value 0
Minimum Value 1
Maximum Value 120
The amount of time in seconds which X Plugin waits for a TCP/IP port to become free.
-
Property Value Command-Line Format --mysqlx-read-timeout=#
Introduced 8.0.4 System Variable mysqlx_port_read_timeout
Scope Session Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 28800
Minimum Value 30
Maximum Value 2147483
Number of seconds that X Plugin waits for blocking read operations to complete. After this time, if the read operation is not successful, the connection is aborted.
-
Property Value Command-Line Format --mysqlx-socket=file_name
System Variable mysqlx_socket
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type String Default Value /tmp/mysqlx.sock
The path to a Unix socket file which X Plugin uses for connections. Only used by MySQL Server when running on Unix operating systems. Clients can then use this socket to connect to MySQL Server using the X Plugin.
The value of
mysqlx_socket
depends on the value ofsocket
. By defaultsocket
is/tmp/mysql.sock
and thereforemysqlx_socket
is/tmp/mysqlx.sock
. Ifsocket
is set to/sockets/mysql.sock
andmysqlx_socket
has not been manually configured, thenmysqlx_socket
is set to/sockets/mysqlx.sock
. In other words the path and filename ofsocket
is used and anx
is appended to the filename, this enables you to conveniently store the sockets used by MySQL server at a single path. To define separate paths or unique filenames for the MySQL and X Plugin sockets, configure both thesocket
and themysqlx_socket
system variables. For example in a configuration file:socket=/home/sockets/mysqld/mysql.sock mysqlx_socket=/home/sockets/xplugin/xplugin.sock
Alternatively, X Plugin can be configured at compile time to use a specific socket with the
MYSQLX_UNIX_ADDR
option. If the X PluginMYSQLX_UNIX_ADDR
compile option is not set, the value is based on theMYSQL_UNIX_ADDR
and adds anx
to the file name, for example resulting in/tmp/mysqlx.sock
. -
Property Value Command-Line Format --mysqlx-ssl-ca=file-name
System Variable mysqlx_ssl_ca
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type File name The equivalent of
ssl_ca
for X Plugin, see that variable for more information. -
Property Value Command-Line Format --mysqlx-ssl-capath=dir_name
System Variable mysqlx_ssl_capath
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type Directory name The equivalent of
ssl_capath
for X Plugin, see that variable for more information. -
Property Value Command-Line Format --mysqlx-ssl-cert=name
System Variable mysqlx_ssl_cert
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type File name The equivalent of
ssl_cert
for X Plugin, see that variable for more information. -
Property Value Command-Line Format --mysqlx-ssl-cipher=name
System Variable mysqlx_ssl_cipher
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type String The SSL cipher to use for X Protocol connections. The X Plugin equivalent of
ssl_cipher
. -
Property Value Command-Line Format --mysqlx-ssl-crl=file_name
System Variable mysqlx_ssl_crl
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type File name The equivalent of
ssl_crl
for X Plugin, see that variable for more information. -
Property Value Command-Line Format --mysqlx-ssl-crlpath=directory_name
System Variable mysqlx_ssl_crlpath
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type Directory name The equivalent of
ssl_crlpath
for X Plugin, see that variable for more information. -
Property Value Command-Line Format --mysqlx-ssl-key=file-name
System Variable mysqlx_ssl_key
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type File name The equivalent of
ssl_key
for X Plugin, see that variable for more information. -
Property Value Command-Line Format --mysqlx-wait-timeout=value
Introduced 8.0.4 System Variable mysqlx_wait_timeout
Scope Session Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 28800
Minimum Value 1
Maximum Value 2147483
Number of seconds that X Plugin waits for activity on a connection. After this time, if the read-operation is not successful, the connection is aborted. If the client is non-interactive, the initial value of the session variable is copied from the global
mysqlx_wait_timeout
variable. For interactive clients, the initial value is copied from the sessionmysqlx_interactive_timeout
. --mysqlx-write-timeout[=
value
]Property Value Command-Line Format --mysqlx-write-timeout=value
Introduced 8.0.4 System Variable mysqlx_write_timeout
Scope Session Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 60
Minimum Value 1
Maximum Value 2147483
Number of seconds that X Plugin waits for blocking write operations to complete. After this time, if the write operation is not successful, the connection is aborted.
When X Plugin is running the following system variables are available.
-
Property Value Command-Line Format --mysqlx[={OFF|ON}]
Introduced 8.0.11 System Variable mysqlx
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type Boolean Default Value ON
Specifies whether the X Plugin should be disabled. Defaults to
ON
, set toOFF
to disable X Plugin. -
Property Value Command-Line Format --mysqlx-bind-address=value
System Variable mysqlx_bind_address
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type String Default Value *
The network address which X Plugin uses for connections. The equivalent of
bind_address
for X Plugin, see that variable for more information. This variable is not dynamic and can only be configured at start up. -
Property Value Command-Line Format --mysqlx-connect-timeout=value
System Variable mysqlx_connect_timeout
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 30
Minimum Value 1
Maximum Value 1000000000
Number of seconds X Plugin waits for the first packet to be received from newly connected clients. The equivalent of
connect_timeout
for X Plugin. mysqlx_document_id_unique_prefix
Property Value Command-Line Format --mysqlx-document-id-unique-prefix=value
System Variable mysqlx_document_id_unique_prefix
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 0
Minimum Value 0
Maximum Value 65535
Sets the first 4 bytes of document IDs generated by the server when documents are added to a collection. By setting this variable to a unique value per instance, you can ensure document IDs are unique across instances. See Understanding Document IDs.
mysqlx_idle_worker_thread_timeout
Property Value Command-Line Format --mysqlx-idle-worker-thread-timeout=value
System Variable mysqlx_idle_worker_thread_timeout
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 60
Minimum Value 0
Maximum Value 3600
Number of seconds after which an idle worker thread is terminated.
-
Property Value Command-Line Format --mysqlx-interactive-timeout=value
Introduced 8.0.4 System Variable mysqlx_interactive_timeout
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 28800
Minimum Value 1
Maximum Value 2147483
Default value of the
mysqlx_wait_timeout
session variable for interactive clients. -
Property Value Command-Line Format --mysqlx-max-allowed-packet=value
System Variable mysqlx_max_allowed_packet
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 1048576
Minimum Value 512
Maximum Value 1073741824
Maximum size of a network packet that can be received by X Plugin. The X Plugin equivalent of
max_allowed_packet
. -
Property Value Command-Line Format --mysqlx-min-worker-threads=value
System Variable mysqlx_min_worker_threads
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 2
Minimum Value 1
Maximum Value 100
Minimum number of worker threads the X Plugin uses for handling client requests.
-
Property Value Command-Line Format --mysqlx-max-connections=value
System Variable mysqlx_max_connections
Scope Global Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 100
Minimum Value 1
Maximum Value 65535
Maximum number of concurrent client connections X Plugin can accept. The X Plugin equivalent of
max_connections
. -
Property Value Command-Line Format --mysqlx-port=value
System Variable mysqlx_port
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type Integer Default Value 33060
Minimum Value 1
Maximum Value 65535
The network port which X Plugin uses for connections. The X Plugin equivalent of
port
. -
Property Value Command-Line Format --mysqlx-port-open-timeout=value
System Variable mysqlx_port_open_timeout
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type Integer Default Value 0
Minimum Value 0
Maximum Value 100
The amount of time in seconds which X Plugin waits for a TCP/IP port to become free.
-
Property Value Command-Line Format --mysqlx-read-timeout=value
Introduced 8.0.4 System Variable mysqlx_read_timeout
Scope Session Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 28800
Minimum Value 30
Maximum Value 2147483
Number of seconds that X Plugin waits for blocking read operations to complete. After this time, if the read operation is not successful, the connection is aborted.
-
Property Value Command-Line Format --mysqlx-socket=file_name
System Variable mysqlx_socket
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type String Default Value /tmp/mysqlx.sock
The socket where X Plugin listens for connections.
-
Property Value Command-Line Format --mysqlx-ssl-cipher=name
System Variable mysqlx_ssl_cipher
Scope Global Dynamic No SET_VAR
Hint AppliesNo Type String The SSL cipher to use for X Protocol connections. The X Plugin equivalent of
ssl_cipher
. -
Property Value Command-Line Format --mysqlx-wait-timeout=value
Introduced 8.0.4 System Variable mysqlx_wait_timeout
Scope Session Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 28800
Minimum Value 1
Maximum Value 2147483
Number of seconds that X Plugin waits for activity on a connection. After this time, if the read-operation is not successful, the connection is aborted. If the client is non-interactive, the initial value of the session variable is copied from the global
mysqlx_wait_timeout
variable. For interactive clients, the initial value is copied from the sessionmysqlx_interactive_timeout
. -
Property Value Command-Line Format --mysqlx-write-timeout=value
Introduced 8.0.4 System Variable mysqlx_write_timeout
Scope Session Dynamic Yes SET_VAR
Hint AppliesNo Type Integer Default Value 60
Minimum Value 1
Maximum Value 2147483
Number of seconds that X Plugin waits for blocking write operations to complete. After this time, if the write operation is not successful, the connection is aborted.
Traduction non disponible
Le manuel MySQL n'est pas encore traduit en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Document créé le 26/06/2006, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/mysql-rf-x-plugin-system-variables-options.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.