RSA private key file not found
来源:互联网 发布:淘宝买苹果手机靠谱吗 编辑:程序博客网 时间:2024/05/19 18:11
安装mysql pxc 初始化时,errorlog中出现如下错误:
[Note] RSA private key file not found: /data/mysql/mysql_3306/data//private_key.pem. Some authentication plugins will not work.
[Note] RSA public key file not found: /data/mysql/mysql_3306/data//public_key.pem. Some authentication plugins will not work.
解决方法如下:
1. 检查是否安装openssl
[root@zw_test_26_74 masterha]# rpm -qa openssl
openssl-1.0.0-20.el6_2.5.x86_64
2.利用openssl生成公有和私有key
[root@zw_test_26_74 masterha]# openssl genrsa -out mykey.pem 1024
Generating RSA private key, 1024 bit long modulus
..........++++++
.++++++
e is 65537 (0x10001)
[root@zw_test_26_74 masterha]# openssl rsa -in mykey.pem -pubout -out mykey.pub
writing RSA key
[root@zw_test_26_74 masterha]# ll
-rw-r--r-- 1 db MySQL 887 2014-10-26 12:59:05 mykey.pem
-rw-r--r-- 1 db mysql 272 2014-10-26 12:59:12 mykey.pub
3.修改key的权限
[root@zw_test_26_74 masterha]# chmod 400 mykey.pem
[root@zw_test_26_74 masterha]# chmod 444 mykey.pub
[root@zw_test_26_74 masterha]# ll mykey
-r-------- 1 db mysql 887 2014-10-26 12:59:05 mykey.pem
-r--r--r-- 1 db mysql 272 2014-10-26 12:59:12 mykey.pub
4.把公私有key的路径加入到my.cnf中
sha256_password_private_key_path=/etc/masterha/mykey.pem
sha256_password_public_key_path=/etc/masterha/mykey.pub
如果key放在datadir目录下,直接写key名即可。否则要指定key的全路径。
- RSA private key file not found
- RSA private key file not found
- openssl rsa.h file not found
- 支付宝SDK---openssl rsa.h file not found
- 添加openssl/rsa.h file not found 问题解决方法
- 支付宝SDK出现 'openssl/rsa.h' file not found
- 集成支付宝 报错 “openssl rsa.h file not found”
- 'cassert' file not found
- 'cmath' file not found
- LINK1104:File not found
- file not found
- File Not Found
- 'string' file not found
- File not found
- nginx File not found.
- File not found
- 'vector' file not found
- nginx File not found!
- Linux下文件编程简介
- linux下添加用户并赋予root权限
- 深入解析 ObjC 中方法的结构
- Android实用代码片段整合
- 390. Elimination Game
- RSA private key file not found
- 接口回调
- .gitignore无效,不能过滤某些文件
- android-filepicker
- laravel框架怎么设置公共头和公共尾
- BZOJ 3832 [Poi2014]Rally
- icon-font 图标字体的使用
- maven Settings配置文件详解
- Linux-下载命令总结