---
slug: "mysql-error-2026-hy000-ssl-connection-error"
title: "Connecting to MySQL 8.0 with SSL Mode Disabled (ERROR 2026 (HY000): SSL Connection Error: Error Handling)"
description: "When trying to connect MySQL Client 8.0 to MySQL 5.6, DataGrip displays an error message: \n\"[08S01] Communications link failure java.io.EOFException: SSL peer shut down incorrectly,\" and the connection fails."
url: "https://www.ytyng.com/en/blog/mysql-error-2026-hy000-ssl-connection-error"
publish_date: "2021-01-01T12:28:03Z"
created: "2021-01-01T12:28:03Z"
updated: "2026-02-27T09:23:20.614Z"
categories: ["MySQL"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20250602/94caa788790b40e89902d4751680ecc5.png.webp?width=768"
has_video: true
has_music: true
video_urls: ["https://media.ytyng.net/ytyng-blog/185/featured-video-1.mp4", "https://media.ytyng.net/ytyng-blog/185/featured-video-2.mp4", "https://media.ytyng.net/ytyng-blog/185/featured-video-3.mp4"]
music_urls: ["https://media.ytyng.net/ytyng-blog/185/featured-music-185-3.mp3", "https://media.ytyng.net/ytyng-blog/185/featured-music-185-4.mp3"]
lang: "en"
---

# Connecting to MySQL 8.0 with SSL Mode Disabled (ERROR 2026 (HY000): SSL Connection Error: Error Handling)

<p>When I tried to connect from MySQL Client 8.0 to MySQL 5.6,</p>
<p>in DataGrip, I encountered the following message:</p>
<pre>[08S01]<br />Communications link failure<br /><br />The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.<br />java.io.EOFException: SSL peer shut down incorrectly.</pre>
<p>On the command line, I got the following error:</p>
<pre>% mysql --host=xxxxx  --user=xxxxx --password<br />Enter password:<br />ERROR 2026 (HY000): SSL connection error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number</pre>
<p>This error occurs because the server is originally serving with SSL disabled, but the client is attempting to connect with SSL enabled, resulting in a failure.</p>
<p>It is possible that this issue is due to a mismatch between the version of SSL on the client side and the encryption method supported by SSL on the server side.</p>
<p>By the way, the OpenSSL version on the client-side Mac is:</p>
<pre>% openssl version<br />LibreSSL 2.8.3</pre>
<p></p>
<p>If you are okay with not using SSL and transmitting in plaintext,</p>
<p>for the mysql command, you can add <code>--ssl-mode=DISABLED</code>.</p>
<pre>% mysql --host=xxxxx --user=xxxxx --password --ssl-mode=DISABLED<br />Enter password:<br />Welcome to the MySQL monitor. Commands end with ; or \g.<br />Your MySQL connection id is 1693381<br />Server version: 5.6.34-log MySQL Community Server (GPL)</pre>
<p></p>
<p>In the case of DataGrip, there is a setting item called <code>useSSL</code> in the Advanced tab of the connection settings. Change this to <code>FALSE</code>.</p>
<p><img src="/media/uploads/mysql-ssl/data_sources_and_drivers.png" alt="" /></p>
<p></p>
