mysql 5.6 private_key.pem public_key.pem file not found

140814 15:28:44 mysqld_safe Starting mysqld daemon with databases from /home/mysql2015/data
2014-08-14 15:28:45 15388 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-08-14 15:28:45 15388 [Note] InnoDB: The InnoDB memory heap is disabled
2014-08-14 15:28:45 15388 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-08-14 15:28:45 15388 [Note] InnoDB: Memory barrier is not used
2014-08-14 15:28:45 15388 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-08-14 15:28:45 15388 [Note] InnoDB: Using Linux native AIO
2014-08-14 15:28:45 15388 [Note] InnoDB: Using CPU crc32 instructions
2014-08-14 15:28:45 15388 [Note] InnoDB: Initializing buffer pool, size = 1.0G
2014-08-14 15:28:45 15388 [Note] InnoDB: Completed initialization of buffer pool
2014-08-14 15:28:45 15388 [Note] InnoDB: Highest supported file format is Barracuda.
2014-08-14 15:28:45 15388 [Note] InnoDB: 128 rollback segment(s) are active.
2014-08-14 15:28:45 15388 [Note] InnoDB: Waiting for purge to start
2014-08-14 15:28:45 15388 [Note] InnoDB: 5.6.20 started; log sequence number 1661278
2014-08-14 15:28:45 15388 [Note] RSA private key file not found: /home/mysql2015/data//private_key.pem. Some authentication plugins will not work.
2014-08-14 15:28:45 15388 [Note] RSA public key file not found: /home/mysql2015/data//public_key.pem. Some authentication plugins will not work.

2014-08-14 15:28:45 15388 [Note] Server hostname (bind-address): '0.0.0.0'; port: 2015
2014-08-14 15:28:45 15388 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
2014-08-14 15:28:45 15388 [Note] Server socket created on IP: '0.0.0.0'.
2014-08-14 15:28:46 15388 [Note] Event Scheduler: Loaded 0 events
2014-08-14 15:28:46 15388 [Note] /usr/local/webserver/mysql2015/bin/mysqld: ready for connections.
Version: '5.6.20-log'  socket: '/tmp/mysql2015.sock'  port: 2015  Source distribution
处理了一个MySQL Plugin 'FEDERATED' is disabled 的问题,发现日志里还有一个RSA private key file not found的问题,sha256_password这个插件是MySQL5.6内置的,支持更为强大的用户密码加密方式。

解决方法:
cd  /home/mysql2015/data/
openssl genrsa -out private_key.pem 1024
openssl rsa -in private_key.pem -pubout > public_key.pem


chmod 400 private_key.pem
chmod 444 public_key.pem
chown mysql:mysql private_key.pem
chown mysql:mysql public_key.pem


重启MYSQL服务,日志不再有以下错误了
RSA private key file not found: /home/mysql2015/data//private_key.pem. Some authentication plugins will not work.

RSA public key file not found: /home/mysql2015/data//public_key.pem. Some authentication plugins will not work.


转载:http://outofmemory.cn/wr/?u=http%3A%2F%2Fwww.zhanghaijun.com%2Fpost%2F951%2F

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值