您好,登錄后才能下訂單哦!
安裝mysql報錯
[Note] RSA private key file not found: /db/mysql5.6/data//private_key.pem. Some authentication plugins will not work. [Note] RSA public key file not found: /db/mysql5.6/data//public_key.pem. Some authentication plugins will not work.
解決方法如下:
$rpm -qa openssl openssl-1.0.0-20.el6_2.5.x86_64
$ openssl genrsa -out mykey.pem 1024Generating RSA private key, 1024 bit long modulus ..........++++++ .++++++ e is 65537 (0x10001)
$ openssl rsa -in mykey.pem -pubout -out mykey.pubwriting RSA key
$ chmod 400 mykey.pem$ chmod 444 mykey.pubchown mysql:mysql mykey.pemchown mysql:mysql mykey.pub
sha256_password_private_key_path=mykey.pem sha256_password_public_key_path=mykey.pub如果key放在datadir目錄下,直接寫key名即可。否則要指定key的全路徑
SHOW STATUS查看Rsa_public_key狀態,如果不為空,則OK.
mysql> SHOW STATUS LIKE 'Rsa_public_key'\G*************************** 1. row ***************************Variable_name: Rsa_public_key Value: -----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEALeNX9dY4EMlaDHCIYPBvFNN NJG2f6dtsyV/IG94TFsKtx/Xobiiz9ihBZSWvUhlfz6aVy9TbN68YEn58G5oOS3o sxKZQvDF9XvjN0thDPwCgfIwTZgatqmrV/qGewCxQpQ03WHPx+GXQmM9iFSfM84F pZ8QtiI3m+fIUaOd/QIDAQAB -----END PUBLIC KEY----- 1 row in set (0.00 sec)
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。