Skip to content
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

Malformed packet (Mysql2::Error) with MariaDB server #915

Closed
raphaelyancey opened this issue Dec 1, 2017 · 3 comments
Closed

Malformed packet (Mysql2::Error) with MariaDB server #915

raphaelyancey opened this issue Dec 1, 2017 · 3 comments

Comments

@raphaelyancey
Copy link

I was running into the same issue from the CLI mysql client on Debian. I installed mariadb-client and could then connect.

Now I'm running into the same problem (I guess) with the mysql2 gem, although I built it with gem install mysql2 -- --with-mysql-config=/usr/bin/mariadb_config.

I don't usually work with Ruby so maybe I missed an installation step? Something like a cache removal or a rebuild?

@sodabrew
Copy link
Collaborator

sodabrew commented Dec 6, 2017

I don't think this has any problem with the Ruby or gem side of things, but rather that the client library and the server are not compatible in some unexpected way. MySQL protocol has been stable for a long time.

What versions of MariaDB client and server and connector/c do you have installed?

@sodabrew
Copy link
Collaborator

sodabrew commented Dec 8, 2017

If you were able to resolve the issue, could you post what works for you, in case someone in the future finds this issue?

@raphaelyancey
Copy link
Author

@sodabrew It wasn't a MariaDB server after all. I could connect with MariaDB client because of it handling older MySQL versions better than the MySQL client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants