-
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
SET NAMES '...' COLLATE '...' fails #1357
Comments
This seems to be an issue for any ProxySQL 1.4.4 to 1.4.6 (current). Versions prior to 1.4.4 work fine. This new behaviour also breaks any python scripts that use mysql.connector. I discovered it as I use a python script to configure proxysql and since the 1.4.4 release, ProxySQL returns the error: Error: 1115 (42000): Unknown character set 'utf8'' or collation ''utf8_general_ci' when connecting via Python mysql.connector: Using this script:
You can see that the code in connection.py module does a "SET NAMES '%s' COLLATE '%s'" % (charset_name, collation_name) call in the _post_connection step... [root@ip-10-xx-xx-xxx proxysql]# python test.py 10.xx.xx.xxx ... |
Fixed. Thank you for the report |
I think there might be another parsing issue on time_zone, see the following commands:
When I set names with timezone, it shows error. However, if setting names alone, it works well. |
Hi, MySQL_Session.cpp:3815:handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___MYSQL_COM_QUERY_qpo(): [ERROR] Unable to parse query. If correct, report it as a bug: SET TIME_ZONE = "+02:00", sql_mode=(SELECT REPLACE(@@sql_mode,"ONLY_FULL_GROUP_BY","")), NAMES utf8mb4 COLLATE utf8mb4_unicode_520_ci |
This specific issue is fixed |
Apparently ProxySQL does not support:
SET NAMES '...' COLLATE '...'
For example:
On the other hand SET NAMES only succeeds:
When used without quotes it works too:
The text was updated successfully, but these errors were encountered: