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
Track SET NAMES ? COLLATE ?
#554
Comments
Hi, we can't use ProxySQL with Laravel. When connect use Collate and ProxySQL return error "Command not Supported" |
Hi. |
Thanks for your answer. I'll wait till Proxysql support it . |
Hi René, I would like to know if there is any update about this issue. Additional Note: charset utf8 / utf8mb4 charset ujis Thank you for developing nice load balancing software as open source. Best Regards |
Hi Shinya, Thank your for the feedback.
Although I am not familiar with Thanks |
Hi René, Thank you for your support. By the way, do you have any idea about following behavior?
-bash-4.2$ mysql -u proxysql_user -ppassw0rd -h 127.0.0.1 -P 6033 -e "show variables like '%char%'" There is three servers under proxy; however, those three servers are configured same. Best Regards |
@rdbms-at-twitter : I forgot to answer here.
|
Hi René, Thank you for your support. I tried it. Admin>select * from global_variables where variable_name like 'mysql-default%'; Confirmation 1 (With ProxySQL = can't display Japanese)[root@replications gr]# php query_with_proxy_char.php `<?php try { $sql = "set names 'utf8mb4' collate 'utf8mb4_general_ci'"; for($i=0;$i<10;$i++){ Confirmation 2 (Direct Connect to the MySQL. Can display Japanese.)[root@replications gr]# php query_without_proxy_char.php `<?php try { $sql = "set names 'utf8mb4' collate 'utf8mb4_general_ci'"; for($i=0;$i<10;$i++){ Confirmation 3 (With ProxySQL. Can Display Japanese.)[root@replications gr]# php query_char.php `<?php try { $sql = "set names 'utf8mb4' collate 'utf8mb4_general_ci'"; for($i=0;$i<10;$i++){ Best Regards |
I can confirm that there is an issue. I run ProxySQL for different PHP apps, some of them use UTF8, some of them Latin1. One specific PHP app (Icinga2, based on Zend..) uses SET statements. However, ProxySQL doesn't seem to consider them. As a consequence, the PHP app throws errors, such as:
Is there any chance that this gets resolved soon? |
does proxysql send the 'SET NAMES..' to backend or does it send "OK" and manages this internally? In my case proxysql 1.4.5-1.1 with ubuntu16 default installation does send this to master.
I do have read-write splitting as
i do have 99.% select operations but the SET NAME will be sent to master, this keeps master kind of busy too. I have tried to add
but nothing has changed, strangewise the rules are ignored and queries are sent to the master thanks for this great product |
This is implemented. |
Verify what happens when a client sends commands like
SET NAMES ? COLLATE ?
The text was updated successfully, but these errors were encountered: