Re: UTF-8 & MySQL Proxy
Date: March 10, 2008 12:54AM
I fix it using a not very good way.
Modify rw-splitting.lua
at function read_query
before line number 202
proxy.queries:append(1, packet)
add one line code
proxy.queries:append(2, string.char(proxy.COM_QUERY) .. "SET NAMES 'utf8'" )
restart you mysql-proxy
everything looks fine.
But this way is not very good, because it will call "SET NAMES 'utf8'" before every query, whatever need or not.
I want to just call "SET NAMES 'utf8'" one times while after mysql-proxy make a real MYSQL connection to backend-servers.
Wish anyone can fix this in better way.
Sorry, you can't reply to this topic. It has been closed.
© 1995-2008 MySQL AB, 2008- Sun Microsystems, Inc.