MySQL 支持以下与密钥环相关的命令行选项:
--keyring-migration-destination=plugin命令行格式 --keyring-migration-destination=plugin_name介绍 5.7.21 类型 细绳 用于密钥迁移的目标密钥环插件。请参阅 第 6.4.4.7 节,“在密钥环密钥库之间迁移密钥”。选项值的格式和解释与选项描述的相同
--keyring-migration-source。笔记--keyring-migration-source并且--keyring-migration-destination对于所有密钥环迁移操作都是强制性的。源插件和目标插件必须不同,并且迁移服务器必须支持这两个插件。--keyring-migration-host=host_name命令行格式 --keyring-migration-host=host_name介绍 5.7.21 类型 细绳 默认值 localhost当前正在使用密钥迁移密钥库之一的正在运行的服务器的主机位置。请参阅 第 6.4.4.7 节,“在密钥环密钥库之间迁移密钥”。迁移始终发生在本地主机上,因此该选项始终指定连接到本地服务器的值,例如
localhost、127.0.0.1、::1或本地主机 IP 地址或主机名。--keyring-migration-password[=password]命令行格式 --keyring-migration-password[=password]介绍 5.7.21 类型 细绳 用于连接到当前正在使用密钥迁移密钥库之一的正在运行的服务器的 MySQL 帐户的密码。请参阅 第 6.4.4.7 节,“在密钥环密钥库之间迁移密钥”。
密码值是可选的。如果没有给出,服务器会提示输入一个。如果给定,则后面的密码和密码之间 不能有空格
--keyring-migration-password=。如果未指定密码选项,则默认为不发送密码。在命令行上指定密码应该被认为是不安全的。请参阅 第 6.1.2.1 节,“密码安全的最终用户指南”。您可以使用选项文件来避免在命令行中提供密码。在这种情况下,该文件应具有限制模式,并且只能由用于运行迁移服务器的帐户访问。
--keyring-migration-port=port_num命令行格式 --keyring-migration-port=port_num介绍 5.7.21 类型 Numeric Default Value 3306For TCP/IP connections, the port number for connecting to the running server that is currently using one of the key migration keystores. See Section 6.4.4.7, “Migrating Keys Between Keyring Keystores”.
--keyring-migration-socket=pathCommand-Line Format --keyring-migration-socket={file_name|pipe_name}Introduced 5.7.21 Type String For Unix socket file or Windows named pipe connections, the socket file or named pipe for connecting to the running server that is currently using one of the key migration keystores. See Section 6.4.4.7, “Migrating Keys Between Keyring Keystores”.
--keyring-migration-source=pluginCommand-Line Format --keyring-migration-source=plugin_nameIntroduced 5.7.21 Type String 用于密钥迁移的源密钥环插件。请参阅 第 6.4.4.7 节,“在密钥环密钥库之间迁移密钥”。
选项值与 类似
--plugin-load,只是只能指定一个插件库。该值以plugin_library或 形式给出,其中是包含插件代码的库文件 的名称, 是要加载的插件的名称。如果一个插件库的命名没有任何前面的插件名称,服务器将加载库中的所有插件。使用前面的插件名称,服务器仅从库中加载指定的插件。服务器在系统变量 命名的目录中查找插件库文件 。name=plugin_libraryplugin_librarynameplugin_dir笔记--keyring-migration-source并且--keyring-migration-destination对于所有密钥环迁移操作都是强制性的。源插件和目标插件必须不同,并且迁移服务器必须支持这两个插件。--keyring-migration-user=user_name命令行格式 --keyring-migration-user=user_name介绍 5.7.21 类型 细绳 用于连接到当前正在使用密钥迁移密钥库之一的正在运行的服务器的 MySQL 帐户的用户名。请参阅 第 6.4.4.7 节,“在密钥环密钥库之间迁移密钥”。