4.6.8 mysql_migrate_keyring — Keyring Key Migration Utility

The mysql_migrate_keyring utility migrates keys between one keyring component and another. It supports offline and online migrations.

Invoke mysql_migrate_keyring like this (enter the command on a single line):

mysql_migrate_keyring
  --component-dir=dir_name
  --source-keyring=name
  --destination-keyring=name
  [other options]

For information about key migrations and instructions describing how to perform them using mysql_migrate_keyring and other methods, see Section 6.4.4.13, “Migrating Keys Between Keyring Keystores”.

mysql_migrate_keyring supports the following options, which can be specified on the command line or in the [mysql_migrate_keyring] group of an option file. For information about option files used by MySQL programs, see Section 4.2.2.2, “Using Option Files”.

Table 4.21 mysql_migrate_keyring Options

Option NameDescription
--component-dirDirectory for keyring components
--defaults-extra-fileRead named option file in addition to usual option files
--defaults-fileRead only named option file
--defaults-group-suffixOption group suffix value
--destination-keyringDestination keyring component name
--destination-keyring-configuration-dirDestination keyring component configuration directory
--get-server-public-keyRequest RSA public key from server
--helpDisplay help message and exit
--hostHost on which MySQL server is located
--login-pathRead login path options from .mylogin.cnf
--no-defaultsRead no option files
--online-migrationMigration source is an active server
--passwordPassword to use when connecting to server
--portTCP/IP port number for connection
--print-defaultsPrint default options
--server-public-key-pathPath name to file containing RSA public key
--socketUnix socket file or Windows named pipe to use
--source-keyringSource keyring component name
--source-keyring-configuration-dirSource keyring component configuration directory
--ssl-caFile that contains list of trusted SSL Certificate Authorities
--ssl-capathDirectory that contains trusted SSL Certificate Authority certificate files
--ssl-certFile that contains X.509 certificate
--ssl-cipherPermissible ciphers for connection encryption
--ssl-crlFile that contains certificate revocation lists
--ssl-crlpathDirectory that contains certificate revocation-list files
--ssl-fips-modeWhether to enable FIPS mode on client side
--ssl-keyFile that contains X.509 key
--ssl-modeDesired security state of connection to server
--tls-ciphersuitesPermissible TLSv1.3 ciphersuites for encrypted connections
--tls-versionPermissible TLS protocols for encrypted connections
--userMySQL user name to use when connecting to server
--verboseVerbose mode
--versionDisplay version information and exit