When using Navicat to make a Query to a MySQL cluster with a ProxySQL server in front, I got this
[Err]
9006 - ProxySQL Error: connection is locked to hostgroup 1 but trying to reach
hostgroup 2
Also it happens on the query SELECT * FROM information_schema.CHARACTER_SETS when loading PHPMyAdmin connected to the ProxySQL.
It begun happening after I made the read/write splitting on the proxy. Hostgroup 1 is write (master), and 2 is read only (2 slaves). I looked about in many places and this solution keep coming up from users:
mysql-set_query_lock_on_hostgroup=0
This is the ProxySQL explaining on this variable: When active (default from 2.0.6), if SET statement is used in multi-statements commands or if the parsing of SET statement is not successful, both multiplexing and query routing is disabled. The client will remain bound to a single backend connection. Any SET statement that ProxySQL doesn’t understand will disable multiplexing and routing.
What is this error happening in the first place? Is this solution right? What does it do? Will it affect the normal functioning of the ProxySQL and the read/write splitting?
