您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
安装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进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。