PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
MySQL and Linux/Unix
MySQL and macOS
MySQL Partitioning
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL Restrictions and Limitations
Security in MySQL
MySQL and Solaris
Building MySQL from Source
Starting and Stopping MySQL
MySQL Tutorial
MySQL and Windows
MySQL NDB Cluster 7.5
This section explains how to configure X Plugin to use encrypted connections. For more background information, seeSection 6.3, “Using Encrypted Connections”.
To enable configuring support for encrypted connections, X Plugin hasmysqlx_ssl_ system variables, which can have different values from thexxxssl_ system variables used with MySQL Server. For example, X Plugin can have SSL key, certificate, and certificate authority files that differ from those used for MySQL Server. These variables are described atSection 19.4.2.2, “X Plugin Options and System Variables”. Similarly, X Plugin has its ownxxxMysqlx_ssl_ status variables that correspond to the MySQL Server encrypted-connectionxxxSsl_ status variables. SeeSection 19.4.2.3, “X Plugin Status Variables”.xxx
At initialization, X Plugin determines its configuration for encrypted connections as follows:
If all
mysqlx_ssl_system variables have their default values, X Plugin configures encrypted connections using the values of the MySQL Serverxxxssl_system variables.xxxIf any
mysqlx_ssl_variable has a nondefault value, X Plugin configures encrypted connections using the values of its own system variables. (This is the case if anyxxxmysqlx_ssl_system variable is set to a value different from its default.)xxx
This means that, on a server with X Plugin enabled, you can choose to have MySQL Protocol and X Protocol connections share the same encryption configuration by setting only thessl_ variables, or have separate encryption configurations for MySQL Protocol and X Protocol connections by configuring thexxxssl_ andxxxmysqlx_ssl_ variables separately.xxx
To have MySQL Protocol and X Protocol connections use the same encryption configuration, set only thessl_ system variables inxxxmy.cnf:
[mysqld]ssl_ca=ca.pemssl_cert=server-cert.pemssl_key=server-key.pem To configure encryption separately for MySQL Protocol and X Protocol connections, set both thessl_ andxxxmysqlx_ssl_ system variables inxxxmy.cnf:
[mysqld]ssl_ca=ca1.pemssl_cert=server-cert1.pemssl_key=server-key1.pemmysqlx_ssl_ca=ca2.pemmysqlx_ssl_cert=server-cert2.pemmysqlx_ssl_key=server-key2.pem For general information about configuring connection-encryption support, seeSection 6.3.1, “Configuring MySQL to Use Encrypted Connections”. That discussion is written for MySQL Server, but the parameter names are similar for X Plugin. (The X Pluginmysqlx_ssl_ system variable names correspond to the MySQL Serverxxxssl_ system variable names.)xxx
Thetls_version system variable that determines the permitted TLS versions for MySQL Protocol connections also applies to X Protocol connections. The permitted TLS versions for both types of connections are therefore the same.
Encryption per connection is optional, but a specific user can be required to use encryption for X Protocol and MySQL Protocol connections by including an appropriateREQUIRE clause in theCREATE USER statement that creates the user. For details, seeSection 13.7.1.2, “CREATE USER Statement”. Alternatively, to require all users to use encryption for X Protocol and MySQL Protocol connections, enable therequire_secure_transport system variable. For additional information, seeConfiguring Encrypted Connections as Mandatory.
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
MySQL and Linux/Unix
MySQL and macOS
MySQL Partitioning
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL Restrictions and Limitations
Security in MySQL
MySQL and Solaris
Building MySQL from Source
Starting and Stopping MySQL
MySQL Tutorial
MySQL and Windows
MySQL NDB Cluster 7.5