-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MySqlConnector.MySqlProtocolException: Packet received out-of-order. Expected 2; got 1. #1465
Comments
Same problem here, had to revert to from 2.3.7 to 2.3.5 and the problem is gone. I tested 2.3.6 and problem occurs too. Something changed since 2.3.6. My setup is: Linq2DB 5.4.1 + MySQL InnoDB Cluster 8.0.35 + ProxySQL version 2.5.5-10-g195bd70, codename Truls. |
We've also observed MariaDB (ver. 10.6.16-MariaDB-log) |
Is this problem reproducible? Is it possible to provide a packet capture from when the problem occurs? |
Same problem happened. 2.3.7 or 2.3.6 and mysql8.0.26 throw error "MySqlConnector.MySqlProtocolException: Packet received out-of-order. Expected 1; got 2." 2.2.5 is ok. |
This is what you need ? |
This totally fix the problem for me! Thank you! |
That file shows:
This is an incorrect response from the MySQL Server and is causing the error.
That is also what I would recommend given the observed behavior above. |
You've mentioned both of these MySQL Servers in different comments:
Are you using both of them? Do both exhibit the "Packet received out-of-order" problem? |
Hello! That was the other guy, I only have MySQL InnoDB Cluster with a proxysql in front. Anyway i just tried to connect directly to mysql without proxysql and it works just fine so is a problem related to proxysql. Thank you for your time and I apologize for the inconveniences. |
Just here to say that I'm having the exact same issue. Our MySql servers are in a cluster environment, for what it's worth. Adding Pipelining = False to connection string corrects the issue for me. |
Adding to this. Our DEV tier is a single node instance with no issues @ 2.3.7. Our UAT and PRD tiers are 3-node Galera clusters that saw compatibility issues. Adding Pipelining = False; also fixed this for us. |
Software versions
MySqlConnector version:2.2.7
Server type (MySQL, MariaDB, Aurora, etc.) and version: MySQL 8.0
.NET version: .net core 3.1
(Optional) ORM NuGet packages and versions: Dapper 2.1.35
Describe the bug
MySqlConnector.MySqlProtocolException: Packet received out-of-order. Expected 2; got 1.
Exception
Code sample
The text was updated successfully, but these errors were encountered: