[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的全路径
Atas ialah kandungan terperinci Bagaimana untuk menyelesaikan ralat mysql fail kunci peribadi RSA tidak dijumpai. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!