-
Notifications
You must be signed in to change notification settings - Fork 977
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
Crash on mysql_connection.cpp:417:set_names_start() #810
Comments
Jericho,
Either the client is really asking a non existing charset (unlikely, seems a plain utf8), or ProxySQL is parsing the request incorrectly (this is probably the case). To be honest I never executed any nodejs application, and perhaps setting one will take some time.
Then try to connect using the client, and finally compress and attach the file to this issue. |
Hi Rene, Here's the tcpdump file, I hope this helps. |
Jericho,
In every packet, the first 4 bytes are a header:
Breaking down the payload:
So, indeed, the driver you are using is specifying charset 0 . As I assume you are successfully able to connect directly to MySQL Server, I started looking into it.
I guess in this case applies "client has not specified a character set", because your driver is setting charset=0. I will patch ProxySQL to handle this case too. Meanwhile, a possible workaround (please try it) is to set Thanks. |
I will consider this a bug, and therefore will be applied also to 1.2.x and 1.3.x releases. |
Rene, The proposed workaround didn't work, I think node-mysql has an existing bug with the
But when disabled/commented out:
And yes, this works fine when I connect the application directly to the mysql backend with or without |
Applied in branches v1.2.6 , v1.3.0 and v1.4.0 |
@renecannao i meet this bug again.proxysql:1.4.3 mysql:5.7.20 |
it's the error dump file |
When starting nodejs application ghost (a blogging platform) with
charset: utf8
, application proxysql will crash with above stacktrace.After commenting out charset option, app started fine:
mysql-default_charset is utf8 in global_variables table
The text was updated successfully, but these errors were encountered: