MySQL Variables sha256_password_public_key_path 数据库 参数变量解释及正确配置使用
本站中文解释
sha256_password_public_key_path变量指定用SQL 连接服务器时,MySQL服务器用以验证比较sha256_password用户账户是否有效的公共密钥文件的路径。
设置sha256_password_public_key_path参数变量通过如下语句:
SET [GLOBAL | SESSION] sha256_password_public_key_path = ‘/path/public_key.pem’;
GLOBAL表示对所有服务器上的MySQL用户有效,SESSION表示只对当前MySQL会话有效。
官方英文解释
sha256_password_public_key_path
Command-Line Format | --sha256-password-public-key-path=file_name |
---|---|
System Variable | sha256_password_public_key_path |
Scope | Global |
Dynamic | No |
Type | File name |
Default Value | public_key.pem |
This variable is available if MySQL was compiled using OpenSSL
(see Section 6.3.4, “SSL Library-Dependent Capabilities”). Its value is the path
name of the RSA public key file for the
sha256_password
authentication plugin. If
the file is named as a relative path, it is interpreted
relative to the server data directory. The file must be in PEM
format. Because this file stores a public key, copies can be
freely distributed to client users. (Clients that explicitly
specify a public key when connecting to the server using RSA
password encryption must use the same public key as that used
by the server.)
For information about sha256_password
,
including information about how clients specify the RSA public
key, see Section 6.4.1.5, “SHA-256 Pluggable Authentication”.