您好,登錄后才能下訂單哦!
本篇內容主要講解“mysql報錯RSA private key file not found怎么解決”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“mysql報錯RSA private key file not found怎么解決”吧!
[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 1024 Generating RSA private key, 1024 bit long modulus ..........++++++ .++++++ e is 65537 (0x10001) $ openssl rsa -in mykey.pem -pubout -out mykey.pub writing RSA key
$ chmod 400 mykey.pem $ chmod 444 mykey.pub chown mysql:mysql mykey.pem chown 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)
到此,相信大家對“mysql報錯RSA private key file not found怎么解決”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。