Skip navigation links

MySQL Forums


Advanced Search

Re: UTF-8 & MySQL Proxy
Posted by: Wei Liu ()
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.

Options: ReplyQuote


Subject Views Written By Posted
UTF-8 & MySQL Proxy 2368 John Croucher 03/02/2008 09:03PM
Re: UTF-8 & MySQL Proxy 1504 gang li 03/07/2008 07:40PM
Re: UTF-8 & MySQL Proxy 1891 Wei Liu 03/10/2008 12:54AM
Re: UTF-8 & MySQL Proxy 1715 Pawel Panek 03/12/2008 04:05AM
Re: UTF-8 & MySQL Proxy 1360 Wei Liu 03/13/2008 12:31PM
Re: UTF-8 & MySQL Proxy 1302 John Croucher 03/14/2008 12:13AM
Re: UTF-8 & MySQL Proxy 1301 Roman Szabados 03/14/2008 01:03PM
Re: UTF-8 & MySQL Proxy 1189 Holger Amann 05/08/2008 01:17PM
Re: UTF-8 & MySQL Proxy 1678 Daniel Wharton 05/09/2008 03:10PM
Re: UTF-8 & MySQL Proxy 1175 Daniel Wharton 05/09/2008 03:12PM


Sorry, you can't reply to this topic. It has been closed.