---
slug: "mysql-error-2026-hy000-ssl-connection-error"
title: "MySQL 8.0 で SSL モードを無効にして接続する (ERROR 2026 (HY000): SSL connection error: error  対応)"
description: "Mysql Client 8.0 から、MySQL 5.6 に接続しようとした所、\nDataGrip では\n[08S01]\nCommunications link failure\njava.io.EOFException: SSL peer shut down incorrectly.\nというエラーメッセージが表示され、失敗した。"
url: "https://www.ytyng.com/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: "ja"
---

# MySQL 8.0 で SSL モードを無効にして接続する (ERROR 2026 (HY000): SSL connection error: error  対応)

<p>Mysql Client 8.0 から、MySQL 5.6 に接続しようとした所、</p>
<p>DataGrip では</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>というメッセージが表示され、コマンドラインでは</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>というエラーとなった。</p>
<p>これは、もともとサーバ側が SSL 無効でサービスしているにもかかわらず、クライアントからは SSL を有効にして接続を試みて、失敗している。</p>
<p></p>
<p>もしかしたら、クライアント側の SSL のバージョンと、サーバ側で対応している SSL の暗号化方式の不一致で発生しているかもしれない。</p>
<p>ちなみに、クライアント側 Mac の OpenSSL はこれ</p>
<pre>% openssl version<br />LibreSSL 2.8.3</pre>
<p></p>
<p>単純に、SSL を使わないで平文で良いなら、</p>
<p>mysql コマンドの場合は <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>DataGrip の場合は、接続設定の Advanced タブの中に、<code>useSSL</code> という設定項目があるので、これを <code>FALSE</code> に変更する。</p>
<p><img src="/media/uploads/mysql-ssl/data_sources_and_drivers.png" alt="" /></p>
<p></p>
