![连接到 ssl mysql 总是失败并出现错误 2026](https://linux22.com/image/699289/%E8%BF%9E%E6%8E%A5%E5%88%B0%20ssl%20mysql%20%E6%80%BB%E6%98%AF%E5%A4%B1%E8%B4%A5%E5%B9%B6%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%202026.png)
我有 mariadb 版本
10.1.21-MariaDB-1~杰西
(在 Debian 8 上)通过 SSL 运行主服务器复制场景并且正常运行:
MariaDB [(none)]> show slave status\G;
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: <MASTER_FQDN>
Master_User: replication_user
Master_Port: 3306
Connect_Retry: 10
Master_Log_File: sqlmaster-bin.000035
Read_Master_Log_Pos: 331
Relay_Log_File: mysqld-relay-bin.000002
Relay_Log_Pos: 623
Relay_Master_Log_File: sqlmaster-bin.000035
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 331
Relay_Log_Space: 922
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: Yes
Master_SSL_CA_File: /etc/mysql/ssl/ca-cert.pem
Master_SSL_CA_Path: /etc/mysql/ssl/
Master_SSL_Cert: /etc/mysql/ssl/client-cert.pem
Master_SSL_Cipher:
Master_SSL_Key: /etc/mysql/ssl/client-key.pem
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: Yes
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 1
Master_SSL_Crl: /etc/mysql/ssl/ca-cert.pem
Master_SSL_Crlpath: /etc/mysql/ssl/
Using_Gtid: Current_Pos
Gtid_IO_Pos: 0-1-440
Replicate_Do_Domain_Ids:
Replicate_Ignore_Domain_Ids:
Parallel_Mode: conservative
1 row in set (0.00 sec)
问题是,无论我尝试使用什么客户端连接到服务器(workbench、navicat、heidisql、其他 mysql 实例、其他 mysql.exe windows 实例等),我都会收到此错误:
ERROR 2026 (HY000): SSL connection error: unknown error number
我真的不知道如何解决这个问题,我已经研究了 8 多个小时了 :) 请帮忙。