-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
invalidProtocolVersion(255) when trying to connect to MySQL on Ubuntu #91
Comments
Did you find any solution? |
In my case, it ended up being a MySQL credentials error (nothing related to a bug in Fluent) |
Hey, I wanted to follow up on this quickly - while it's true that the immediate cause of the problem was on the server end, Fluent should not have been reporting that particular, very unhelpful error. This particular symptom occurs when the server sends an A large-scale rewrite of MySQLNIO to address this and dozens of other issues is currently in progress, hopefully I'll have it ready for at least a preview soon. |
* Update package support files (dockerignore, readme, CI workflows) * Minimal code cleanup - replace `fatalError()`s and `assert()`s with thrown errors, add escapes in comments so Xcode's inline formatting doesn't choke, add `any` to existential usage, other very minor tweaks. * Fix the "server sends error packet when nothing else is going on causes crash" problem - fixes #87 * Add fix for the bad protocol version bug - fixes #91 * Fix the tests bug that causes problems with the `foos` table still existing when the integration tests for FluentMySQLDriver run. * Work around weird deadlock on Linux * Remove many unneeded !s from try!s in tests
Describe the bug
When trying to connect to MySQL from Vapor running on Ubuntu, I am receiving the following error:
invalidProtocolVersion(255)
Meanwhile, I have no issues with connecting when running Vapor on my Mac locally
Environment
I am running Vapor in a Docker Container on an Ubuntu 22 server. I have also tried running vapor outside of docker using the cli.
I am running MySQL 8.0.32-0ubuntu0.22.04.2
The text was updated successfully, but these errors were encountered: