docker mysql客户端:SSL connection error: error:1425F102:SSL routines: unsupported protocol

docker mysql 客户端报错

[root@1317c0f71d3d /]# mysql -h192.168.102.11 -P3306 -uroot -p123456                    
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2026 (HY000): SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
[root@1317c0f71d3d /]# 

加上 --ssl-mode=DISABLED 解决问题

[root@1317c0f71d3d /]# mysql -h192.168.102.11 -P3306 -uroot -p123456  --ssl-mode=DISABLED
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 43913
Server version: 5.7.27-log MySQL Community Server (GPL)

Copyright (c) 2000, 2019, 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> 

你可能感兴趣的:(docker数据库,mysql,数据库)