2016-04-14 10 views
-1

MySQLサーバ上で新たに導入されたSSL接続は、CentOS 6.7のデフォルト担当者にデフォルトでインストールされるようになりました。MySQLコミュニティサーバーでsslプラグインを無効にするにはどうすればよいですか?

ただ、証明書ファイルを削除すると、ドキュメントとaccodingそれを解決することができます。

を「サーバがデータディレクトリに有効な証明書とキーファイルが見つからない場合は、実行を続けますが、安全な接続を有効にしません。 " 参考:http://dev.mysql.com/doc/refman/5.7/en/secure-connections.html

しかし、私は、私はこれが、このプラグインを含んで使用していないすべてのものを除去することによって、MySQLサーバのパフォーマンスを最適化したいので、私は、MySQLサーバー上の完全な無効化SSL接続プラグインにしたいです。

MySQLコミュニティサーバーでsslを無効にするにはどうすればよいですか?

+0

/path/to/file/my.cnf: 'サーバがない場合データディレクトリに有効な証明書とキーファイルが見つからない場合、実行を継続しますが、セキュアな接続を有効にしませんns.'。 [7.3.11.5セキュア接続のコマンドオプション](http://dev.mysql.com/doc/refman/5.7/en/secure-connection-options.html)を参照してください。 – wchiquito

+0

しかし、私はそれを削除すると、サーバーは私にすべての接続で長い警告をくれました。私はそれを無効にしたい。 – LeonanCarvalho

答えて

2

私のテスト:

$ mysql -u root -p 
Enter password: 
Welcome to the MySQL monitor. Commands end with ; or \g. 
Your MySQL connection id is 3 
Server version: 5.7.12 MySQL Community Server (GPL) 

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. 

Oracle is a registered trademark of Oracle Corporation and/or its 
affiliates. Other names may be trademarks of their respective 
owners. 

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 

mysql> SHOW VARIABLES LIKE '%ssl%'; 
+---------------+-----------------+ 
| Variable_name | Value   | 
+---------------+-----------------+ 
| have_openssl | YES    | 
| have_ssl  | YES    | 
| ssl_ca  | ca.pem   | 
| ssl_capath |     | 
| ssl_cert  | server-cert.pem | 
| ssl_cipher |     | 
| ssl_crl  |     | 
| ssl_crlpath |     | 
| ssl_key  | server-key.pem | 
+---------------+-----------------+ 
9 rows in set (0.00 sec) 

ファイル:DOCから

[mysqld] 
... 

skip_ssl 
# disable_ssl 

... 
$ service mysql restart 

$ mysql -u root -p 
Enter password: 
Welcome to the MySQL monitor. Commands end with ; or \g. 
Your MySQL connection id is 3 
Server version: 5.7.12 MySQL Community Server (GPL) 

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. 

Oracle is a registered trademark of Oracle Corporation and/or its 
affiliates. Other names may be trademarks of their respective 
owners. 

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 

mysql> SHOW VARIABLES LIKE '%ssl%'; 
+---------------+----------+ 
| Variable_name | Value | 
+---------------+----------+ 
| have_openssl | DISABLED | 
| have_ssl  | DISABLED | 
| ssl_ca  |   | 
| ssl_capath |   | 
| ssl_cert  |   | 
| ssl_cipher |   | 
| ssl_crl  |   | 
| ssl_crlpath |   | 
| ssl_key  |   | 
+---------------+----------+ 
9 rows in set (0.00 sec) 
+0

それは動作します! ありがとう – LeonanCarvalho

関連する問題