您的位置:首页 > 数据库 > MySQL

mysql 5.6 private_key.pem public_key.pem file not found

2015-03-10 11:02 441 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: