---
title: How do I fix the SSL "unknown error number" error when connecting to MySQL?
description: Upgrade your client to support TLSv1.2 or TLSv1.3 for secure MySQL connections.
product: Support
url: https://docs.digitalocean.com/support/how-do-i-fix-the-ssl-unknown-error-number-error-when-connecting-to-mysql/
last_updated: "2026-07-13"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# How do I fix the SSL "unknown error number" error when connecting to MySQL?

You may get a `ERROR 2026 (HY000): SSL connection error: unknown error number` error when you try to connect to MySQL or MariaDB with an outdated client that does not support TLSv1.2 or TLSv1.3.

To fix this error, upgrade your client to a version that supports TLSv1.2 or TLSv1.3. MySQL also supports [many options for customizing connections](https://dev.mysql.com/doc/refman/8.0/en/mysql-command-options.html).

For more details on MySQL versions and their supported TLS versions, see the [MySQL Encrypted Connection TLS Protocols and Ciphers docs](https://dev.mysql.com/doc/refman/8.3/en/encrypted-connection-protocols-ciphers.html).

## Related Topics

[How do I fix the mysqldump "Couldn't execute FLUSH TABLES Access denied" error?](https://docs.digitalocean.com/support/how-do-i-fix-the-mysqldump-couldnt-execute-flush-tables-access-denied-error/index.html.md): Update backup user permissions, remove the –single-transaction flag, or downgrade mysqldump.

[Why does MySQL shut down when importing data with the source command?](https://docs.digitalocean.com/support/why-does-mysql-shut-down-when-importing-data-with-the-source-command/index.html.md): Use MySQL’s import command instead of source for handling large data imports.

[How do I fix the "1227" error?](https://docs.digitalocean.com/support/how-do-i-fix-the-1227-error/index.html.md): Remove or replace the DEFINER in the dump file.