My Oracle Support Banner

Cannot Connect to the MySQL Server Through the MySQL Enterprise Monitor (MEM) + Error 2013 (HY000): Lost Connection to MySQL Server at 'Reading Initial Communication Packet'; MySQL 5.5.8 to 5.5.9 (Doc ID 1376206.1)

Last updated on FEBRUARY 10, 2019

Applies to:

MySQL Router - Version 0.8 to 0.8 [Release 0.8]
MySQL Enterprise Monitor - Version 2.3 to 2.3 [Release 2.3]
MySQL Server - Version 5.5 to 5.5 [Release 5.5]
Information in this document applies to any platform.


When attempting to connect to MySQL Server version 5.5.8 or 5.5.9 through the MySQL Enterprise Monitor Proxy using version 2.3.6 or later, the following error occurs:

ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0


Reproducing the Issue

The issue can be reproduced at will with the following steps:

  1. Start MySQL
  2. Start the MySQL Enterprise Monitor Agent with the Proxy enabled
  3. Attempt to connect to the server using the MySQL Command Line Client:

    mysql -h -P 6446 --protocol=tcp


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Reproducing the Issue
 Solution 1 - Upgrade MySQL Server
 Solution 2 - Downgrade the MySQL Enterprise Monitor Agent

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.