<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - MySQL Proxy</title>
        <description>Forum for MySQL Proxy</description>
        <link>http://forums.mysql.com/list.php?146</link>
        <lastBuildDate>Sat, 25 May 2013 05:53:15 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?146,586478,586478#msg-586478</guid>
            <title>switching the backend server at the query level (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,586478,586478#msg-586478</link>
            <description><![CDATA[ Is it possible to choose the backend-server where to send the query in the read_query() function? I need first analyse the query then decide where it should go. If yes then how do i do that?]]></description>
            <dc:creator>R T</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Thu, 16 May 2013 10:49:00 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,585617,585617#msg-585617</guid>
            <title>Method to treat LUA_USERDATA in C language (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,585617,585617#msg-585617</link>
            <description><![CDATA[ Hi,<br />
<br />
I modify the record set that mysql returned and am going to go back up to a client.<br />
I made &quot;processing I did a hook in read_query_result in lua script, and to call C module&quot;.<br />
But I do not understand a method to receive in the C side.<br />
lua_type is LUA_USERDATA.<br />
Is there the structure body which can handle these data?<br />
Is there the method elsewhere?<br />
<br />
Thanks,<br />
Akihiro Seki<br />
<br />
-- testlib.cpp -------------------------------<br />
<br />
#include &lt;lua.hpp&gt;<br />
#include &lt;sstream&gt;<br />
#include &lt;ctype.h&gt;<br />
#include &lt;string.h&gt;<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;stdio.h&gt;<br />
#include &lt;regex.h&gt;<br />
<br />
namespace<br />
{<br />
	<br />
int testlib_decrypt_result(lua_State* L)<br />
{<br />
//	??????* recs = (???*)lua_touserdata(L,1);<br />
<br />
    const int num = lua_gettop(L);<br />
    if (num == 0) {<br />
        printf(&quot;No stack.\n&quot;);<br />
        return 1;<br />
    }<br />
    printf(&quot;Num:%d\n&quot;,num);<br />
    for (int i = num; i &gt;= 1; i--) {<br />
        printf(&quot;%03d(%04d): &quot;, i, -num + i - 1);<br />
        int type = lua_type(L, i);<br />
        switch(type) {<br />
        case LUA_TNIL:<br />
            printf(&quot;NIL\n&quot;);<br />
            break;<br />
        case LUA_TBOOLEAN:<br />
            printf(&quot;BOOLEAN %s\n&quot;, lua_toboolean(L, i) ? &quot;true&quot; : &quot;false&quot;);<br />
            break;<br />
        case LUA_TLIGHTUSERDATA:<br />
            printf(&quot;LIGHTUSERDATA\n&quot;);<br />
            break;<br />
        case LUA_TNUMBER:<br />
            printf(&quot;NUMBER %f\n&quot;, lua_tonumber(L, i));<br />
            break;<br />
        case LUA_TSTRING:<br />
            printf(&quot;STRING %s\n&quot;, lua_tostring(L, i));<br />
            break;<br />
        case LUA_TTABLE:<br />
            printf(&quot;TABLE\n&quot;);<br />
            break;<br />
        case LUA_TFUNCTION:<br />
            printf(&quot;FUNCTION\n&quot;);<br />
            break;<br />
        case LUA_TUSERDATA:<br />
            printf(&quot;USERDATA\n&quot;);<br />
            break;<br />
        case LUA_TTHREAD:<br />
            printf(&quot;THREAD\n&quot;);<br />
            break;<br />
        }<br />
    }<br />
    printf(&quot;-----------------------------\n\n&quot;);<br />
<br />
    return 1;<br />
}<br />
<br />
const luaL_Reg testlib[] =<br />
{<br />
    { &quot;decrypt_result&quot;, testlib_decrypt_result },<br />
    { NULL  , NULL         }<br />
};<br />
<br />
} // namespace<br />
<br />
extern &quot;C&quot; int luaopen_testlib(lua_State* L)<br />
{<br />
#if LUA_VERSION_NUM &gt;= 502<br />
    luaL_newlib(L, testlib);<br />
#else<br />
    luaL_register(L, &quot;testlib&quot;, testlib);<br />
#endif<br />
    return 1;<br />
}<br />
----------------------------------------------<br />
<br />
<br />
<br />
-- sample.lua -------------------------------<br />
function read_query_result( inj ) <br />
<br />
        a = require(&quot;testlib&quot;)<br />
        ret = a.decrypt_result(inj.resultset)<br />
        print(&quot;decrypt_result:&quot; .. ret)<br />
<br />
        proxy.response.type = proxy.MYSQLD_PACKET_OK<br />
        proxy.response.resultset = inj.resultset<br />
<br />
	return proxy.PROXY_SEND_RESULT<br />
<br />
end<br />
----------------------------------------------]]></description>
            <dc:creator>明弘 関</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Tue, 07 May 2013 00:38:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,584688,584688#msg-584688</guid>
            <title>mysql proxy issue:  backend servers &quot;State&quot; is &quot;Unknown&quot; (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,584688,584688#msg-584688</link>
            <description><![CDATA[ Not sure if anyone cares to help me or not.  But I just setup mysql proxy running 0.8.3 on two mysql servers running master and slave configuration.  I follow several instructions on the web to have it configured.  when I used the admin monitoring to SELECT * FROM backends;<br />
<br />
It showd that all of my backend servers are in &quot;unknown&quot; state:<br />
<br />
mysql&gt; SELECT * FROM backends;<br />
+-------------+------------------+---------+------+------+-------------------+<br />
| backend_ndx | address          | state   | type | uuid | connected_clients |<br />
+-------------+------------------+---------+------+------+-------------------+<br />
|           1 | 172.16.10.94:3306 | unknown | rw   | NULL |                 0 |<br />
|           2 | 172.16.10.93:3306 | unknown | ro   | NULL |                 0 |<br />
+-------------+------------------+---------+------+------+-------------------+<br />
2 rows in set (0.00 sec)<br />
<br />
Here is my config file:  <br />
<br />
# MySQL Proxy's configuration file (mysql-proxy.cnf)<br />
<br />
[mysql-proxy]<br />
daemon = true<br />
proxy-address=172.16.10.45:4040<br />
admin-lua-script = /opt/mysql-proxy-0.8.3/lib/mysql-proxy/lua/admin.lua<br />
admin-username = admin<br />
admin-password = xxxxxx<br />
pid-file = /opt/mysql-proxy-0.8.3/mysql-proxy.pid<br />
log-file = /opt/mysql-proxy-0.8.3/mysql-proxy.log<br />
log-level = debug<br />
plugins = proxy,admin<br />
plugin-dir=/opt/mysql-proxy-0.8.3/lib/mysql-proxy/plugins<br />
proxy-backend-addresses = 172.16.10.94:3306<br />
proxy-read-only-backend-addresses = 172.16.10.93:3306<br />
proxy-lua-script = /opt/mysql-proxy-0.8.3/lua/rw-splitting.lua<br />
proxy-lua-script = /opt/mysql-proxy-0.8.3/lua/auditing.lua<br />
proxy-lua-script = /opt/mysql-proxy-0.8.3/lua/active-queries.lua<br />
proxy-lua-script = /opt/mysql-proxy-0.8.3/lua/ro-pooling.lua<br />
keepalive = true<br />
<br />
<br />
Not sure what I'm doing wrong???  Hopefully someone can help...]]></description>
            <dc:creator>Mike Wong</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Tue, 23 Apr 2013 22:34:12 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,582595,582595#msg-582595</guid>
            <title>how to measure the mysql-proxy  performance (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,582595,582595#msg-582595</link>
            <description><![CDATA[ Hi <br />
<br />
  I have installed the latest mysql-proxy now I want to measure the performenance with compare to normal mysql.<br />
<br />
I have already configure the master-slave replication.<br />
<br />
Please suggest some tool with few example to measure the difference of performance.]]></description>
            <dc:creator>niraj vara</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Fri, 29 Mar 2013 06:20:50 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,582429,582429#msg-582429</guid>
            <title>Under what conditions destination backend is changed? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?146,582429,582429#msg-582429</link>
            <description><![CDATA[ I'm using mysql-proxy-0.8.2-1 for load balancing purposes.<br />
I've failed to get an answer from documentation,<br />
it's' not obvious, under what conditions destination backend is changed to a next one in upstream.<br />
<br />
I was looking into 'balance.lua', but it seems that balancing mechanism does not use this script - <br />
it keeps working even when i move '/usr/lib64/mysql-proxy/lua/proxy/balance.lua' to a different dir (and restart proxy).<br />
<br />
My configuration looks like this<br />
--daemon --log-file=/var/log/mysql/proxy.log --log-level=debug <br />
--user=nginx \<br />
--proxy-address=172.16.3.103:3306<br />
--proxy-backend-addresses=172.16.3.104:3306<br />
--proxy-backend-addresses=172.16.3.105:3306<br />
<br />
#Adding\removing the next line gives no effect:<br />
--proxy-lua-script=/usr/lib64/mysql-proxy/lua/proxy/balance.lua<br />
<br />
I'm querying proxy host from two boxes with this command line:<br />
while (:); do mysql -uvm1 -ppass -e &quot;select id,created from mydb.goods where id = FLOOR(7 + (RAND() * 5))&quot; --port 3306 --host 172.16.3.103; done;<br />
<br />
If this loop is started on one machine, most queries are accepted by the first backend (172.16.3.104), and a very tiny part goes to the second one (172.16.3.105).<br />
When i start the 'while' loop on another client system, queries are separated 50\50 between mysql backends.<br />
<br />
This situation repeats with and without including 'balance.lua' script.<br />
<br />
Please explain, what global variables on mysql backend are being checked when decision about the backend is made.<br />
<br />
Best Regards.]]></description>
            <dc:creator>Vladimir Linevich</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Wed, 27 Mar 2013 13:33:32 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,580147,580147#msg-580147</guid>
            <title>Mysql-Proxy and GSLB (GSS) (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,580147,580147#msg-580147</link>
            <description><![CDATA[ To All:<br />
<br />
I have what Might be a setup issue or a bug.. I am unsure so I figured I would ask people that have more experience than I do on this topic.<br />
<br />
High Level Setup assume the DB server name is db-server<br />
<br />
Master-Master setup between 10.10.10.10 and 10.10.10.11<br />
<br />
Sample: East/West Coast<br />
West Coast user resovles to 10.10.10.10 (Server on the west coast)<br />
Multiple West Coast process servers with mysql-proxy pointing to the server name of &quot;db-server&quot; (10.10.10.10)<br />
East Coast user resolves to 10.10.10.11 (Server on the East Coast)<br />
Multiple East Coast process servers with mysql-proxy pointing to the server name of &quot;db-server&quot; (10.10.10.11)<br />
<br />
At a even higher level<br />
If you do a nslookup on &quot;db-server.foo.com&quot; on the west coast you return 10.10.10.10.  <br />
If you do a nslookup on &quot;db-server.foo.com&quot; on the east coast you return 10.10.10.11<br />
<br />
All systems proxy point to db-server.foo.com<br />
<br />
Everything works great as I have accounted for most items for this application.<br />
<br />
<br />
Now what &quot;may&quot; be the bug... If I shutdown the West coast db-server (10.10.10.10) I would expect the proxy to see a breif failure and reconnect to the &quot;new&quot; East coast servers of 10.10.10.11  This does not happen<br />
<br />
The West coast servers continue to attempt to connect to 10.10.10.10 until the proxy is restarted.<br />
<br />
I have validated that after I shutdown the west coast instance of db-server (10.10.10.10) nslookup/dig of db-server resolves properly to the East coast system (10.10.10.11)<br />
<br />
If I was to hazard a guess I &quot;think&quot; mysql-proxy caches the IP address of whatever server it has configured..   How do I decrease that cache time?  or is something else going on that I am not aware of?<br />
<br />
<br />
mysql-proxy is setup to point to db-server (GSS controls the IP of DB-server incase one goes offline)]]></description>
            <dc:creator>Derek Meyer</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Wed, 27 Feb 2013 17:22:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,579580,579580#msg-579580</guid>
            <title>Proxy fixing application issues (3 replies)</title>
            <link>http://forums.mysql.com/read.php?146,579580,579580#msg-579580</link>
            <description><![CDATA[ Hi<br />
<br />
I am having issues with  3rd party application and placed the mysql proxy inline to see if I could identify the problem. I am using a very basic lua script which created two files, one for query errors and one for all queries. However, the problems disappeared when I started using the proxy. I removed the proxy and the problems immediately started again. I am at a loss to explain this behavior, any thoughts would be welcome. Is the proxy performing any other function other than intercepting and forwarding connections/queries ?<br />
<br />
Thanks<br />
<br />
Steve]]></description>
            <dc:creator>steve NOT_FOUND</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Fri, 22 Feb 2013 12:55:50 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,579372,579372#msg-579372</guid>
            <title>Mysql Proxy Slave Unknown (3 replies)</title>
            <link>http://forums.mysql.com/read.php?146,579372,579372#msg-579372</link>
            <description><![CDATA[ Hi, <br />
<br />
I'm very new to mysql proxy. I configured proxy installed in one machine and Master and slave. <br />
<br />
Proxy conf i used <br />
<br />
[mysql-proxy]<br />
daemon = true<br />
log-level = debug<br />
admin-address=10.0.1.11:4041<br />
admin-username=root<br />
admin-password=purpletalk<br />
admin-lua-script=/usr/lib/mysql-proxy/lua/admin.lua<br />
proxy-address=10.0.1.11:4040<br />
proxy-read-only-backend-addresses=10.0.1.119:3306<br />
proxy-backend-addresses=10.0.1.37:3306<br />
proxy-skip-profiling=true<br />
proxy-lua-script=/usr/lib/mysql-proxy/lua/proxy/balance.lua<br />
<br />
When connecting with 4041 <br />
<br />
mysql&gt; select * from backends;<br />
+-------------+-----------------+---------+------+------+-------------------+<br />
| backend_ndx | address         | state   | type | uuid | connected_clients |<br />
+-------------+-----------------+---------+------+------+-------------------+<br />
|           1 | 10.0.1.37:3306  | up      | rw   | NULL |                 0 |<br />
|           2 | 10.0.1.119:3306 | unknown | ro   | NULL |                 0 |<br />
+-------------+-----------------+---------+------+------+-------------------+<br />
I could not understand why 10.0.1.119 is unknown. <br />
<br />
I started proxy using command <br />
<br />
mysql-proxy --defaults-file=/etc/mysql-proxy/proxy.conf<br />
<br />
Please do Help ..<br />
Thanks,<br />
Dileep.]]></description>
            <dc:creator>dileep ch</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Wed, 24 Apr 2013 21:43:24 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,579217,579217#msg-579217</guid>
            <title>Install mysql proxy when I'm faced with the following error (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,579217,579217#msg-579217</link>
            <description><![CDATA[ Install mysql proxy when I'm faced with the following error<br />
make[3] ***[sql-tokenizer.c] Error1<br />
make[3] Leaving directory 'root/mysql-proxy/lib'<br />
make[2] ***[all-recursive] Error1<br />
make[2] Leaving directory 'root/mysql-proxy/lib'<br />
make[1] ***[all-recursive] Error1<br />
make[1] Leaving directory 'root/mysql-proxy'<br />
make ***[all] Error 2<br />
<br />
<br />
<br />
I am installing Mysql-proxy as Follows::<br />
 <br />
 % bzr branch lp:mysql-proxy<br />
  % cd mysql-proxy<br />
  % sh ./autogen.sh<br />
  % ./configure --enable-maintainer-mode --with-lua=lua5.1<br />
  % make<br />
  % make install]]></description>
            <dc:creator>s h</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Fri, 15 Feb 2013 05:07:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,579175,579175#msg-579175</guid>
            <title>Concurrent connections, lua script blocking (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,579175,579175#msg-579175</link>
            <description><![CDATA[ I'm finding that mysql proxy cannot process more than one request at a time while in a lua script.  While processing the lua script, requests from other connections are blocked.<br />
<br />
<br />
I've created a simple example with a proxy that execute's a sleep command.  While this is running, the proxy does not process any other clients' commands.<br />
<br />
<br />
Here's the script.  It may be easier to read here: <a href="http://pastebin.com/NaZQ46NR"  rel="nofollow">http://pastebin.com/NaZQ46NR</a><br />
<br />
<br />
==== sleeptest.lua ====<br />
<br />
<br />
local tokenizer = require(&quot;proxy.tokenizer&quot;)<br />
<br />
<br />
function read_query( packet )<br />
  if string.byte(packet) == proxy.COM_QUERY then<br />
    local query = string.sub(packet, 2)<br />
    <br />
    local tokens = tokenizer.tokenize(query)<br />
    <br />
    if #tokens &gt;= 1 and tokens[1].token_name == 'TK_LITERAL' then<br />
      local command = string.lower(tokens[1].text)<br />
      <br />
      if command == 'sleep' then<br />
        if #tokens == 2 then<br />
          local sleep_time = tonumber(tokens[2].text)<br />
          os.execute(&quot;sleep &quot; .. sleep_time)<br />
                    <br />
          proxy.response.type = proxy.MYSQLD_PACKET_OK<br />
          proxy.response.resultset = {<br />
            fields = {<br />
              { type = proxy.MYSQL_TYPE_LONG, name=&quot;sleep_time&quot;, },<br />
            },<br />
            rows = {<br />
              { sleep_time },<br />
            }<br />
          }<br />
          return proxy.PROXY_SEND_RESULT          <br />
        end<br />
        <br />
      end<br />
    end<br />
  end<br />
end<br />
<br />
function read_query_result(inj)<br />
 <br />
end<br />
<br />
<br />
<br />
==== steps to reproduce ====<br />
<br />
1. run mysql-proxy, loading sleeptest.lua<br />
2. connect two clients to the proxy (A and B)<br />
3. in client A, run the command &quot;sleep 10;&quot;<br />
4. in client B, run the command &quot;select 1;&quot;<br />
<br />
client B will not show the result of the query until client A's command has completed processing<br />
<br />
<br />
I've tried the --event-threads option but setting it to a higher number doesn't seem to help.<br />
<br />
<br />
Is this expected behaviour?  Or am I missing something?<br />
<br />
<br />
<br />
==== version info ====<br />
mysql-proxy 0.8.3<br />
  chassis: mysql-proxy 0.8.3<br />
  glib2: 2.16.6<br />
  libevent: 1.4.13-stable<br />
  LUA: Lua 5.1.4<br />
    package.path: /usr/local/mysql-proxy/lib/mysql-proxy/lua/?.lua;<br />
    package.cpath: /usr/local/mysql-proxy/lib/mysql-proxy/lua/?.so;<br />
-- modules<br />
  proxy: 0.8.3]]></description>
            <dc:creator>Сар Рoе</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Thu, 14 Feb 2013 18:34:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,576430,576430#msg-576430</guid>
            <title>LAST_INSERT_ID using triggers the safe way (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,576430,576430#msg-576430</link>
            <description><![CDATA[ Hello,<br />
<br />
Since triggers do not remember the last_insert_id updates, I created a trigger, a function and a lua script to handle that. I am gonna be doing rw splitting using the proxy-read-only-backend-addresses option. I know that there has been some modifications in the code to handle LAST_INSERT_ID calls to go through the same backend.<br />
My question basically is, would the following script affect the modifications that have been done in mysql-proxy to handle this and how would the rw splitting work if I use the proxy-read-only-backend-addresses option ? Would it automatically read the script from /usr/share/mysql-proxy/rw-splitting.lua ? And between that script and my proxy-lua-script which one would have priority ?<br />
<br />
trigger code<br />
<pre class="bbcode">
CREATE TRIGGER `t1_insert_after_trigger` AFTER INSERT ON `t1` FOR EACH ROW BEGIN
    INSERT INTO t2(name,address) VALUES(NEW.username,NEW.email);
    set @trigger_last_insert_id := (select last_insert_id());
END;</pre>
<br />
function code<br />
<pre class="bbcode">
CREATE FUNCTION `TRIGGER_LAST_INSERT_ID`() RETURNS int(11)
BEGIN
  DECLARE t_id INT;
  IF @trigger_last_insert_id IS NULL THEN
    SET t_id = 0;
  ELSE
    SET t_id = @trigger_last_insert_id;
  END IF;
  RETURN (t_id);
END</pre>
<br />
lua code<br />
<pre class="bbcode">
function read_query( packet )
   if string.byte(packet) == proxy.COM_QUERY then
     local query = string.sub(packet, 2)
     local replacing = false
     if string.match(string.upper(query), 'LAST_INSERT_ID') then
         query = string.gsub(query,'LAST_INSERT_ID', 'TRIGGER_LAST_INSERT_ID')
         replacing = true
     end
     if (replacing) then
         proxy.queries:append(1, string.char(proxy.COM_QUERY) .. query )
         return proxy.PROXY_SEND_QUERY
     end
   end
end
</pre>]]></description>
            <dc:creator>Kosta Psimoulis</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Fri, 21 Dec 2012 19:39:00 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,574922,574922#msg-574922</guid>
            <title>Force proxy to establish at least one connection to each backend server? (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,574922,574922#msg-574922</link>
            <description><![CDATA[ Is there a way to force MySQL Proxy 0.8.3 to establish and maintain at least one connection to each backend server at start up?]]></description>
            <dc:creator>Van Stokes</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Thu, 29 Nov 2012 17:35:42 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,574832,574832#msg-574832</guid>
            <title>mysql-proxy rw-splitting.lua error (2 replies)</title>
            <link>http://forums.mysql.com/read.php?146,574832,574832#msg-574832</link>
            <description><![CDATA[ Hi,<br />
<br />
I am using mysql-proxy for rw-splitting and load balancing. But when ever i started mysql-proxy with rw-splitting script i am not able to connect to mysql-proxy machine from slave, it gives me the following error<br />
<br />
# mysql -uroot -pmysql -h 192.168.0.108 -P4040<br />
ERROR 1105 (00000): #07000MySQL Proxy Lua script failed to load. Check the error log.<br />
<br />
I am a new newbie in this please lell me what is the error,<br />
<br />
adding my mysql-proxy configuration file below<br />
<br />
<br />
[mysql-proxy]<br />
daemon = true<br />
<br />
pid-file = /usr/local/src/mysql-proxy/mysql-proxy.pid<br />
log-file = /usr/local/src/mysql-proxy/mysql-proxy.log<br />
log-level = message<br />
<br />
proxy-backend-addresses = 192.168.0.108:3306<br />
<br />
proxy-read-only-backend-addresses = 192.168.0.109:3306,192.168.0.111:3306<br />
<br />
proxy-lua-script = /usr/local/src/mysql-proxy/active-queries.lua,/usr/local/src/mysql-proxy/rw-splitting.lua<br />
<br />
keepalive = true<br />
<br />
why it is not taking the rw-splitting.lua script, please help me in this.]]></description>
            <dc:creator>jeffin mathew</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Fri, 07 Dec 2012 10:52:22 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,574267,574267#msg-574267</guid>
            <title>how can mysql-proxy set charset when it start running ? (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,574267,574267#msg-574267</link>
            <description><![CDATA[ Hi everyone:<br />
<br />
   how can i init charset for mysqlproxy ? make the conection to mysql is not default latin1 .<br />
           <br />
         mysql&gt; show variables like '%set%';          <br />
+--------------------------+----------------------------------+<br />
| Variable_name            | Value                            |<br />
+--------------------------+----------------------------------+<br />
| auto_increment_offset    | 1                                | <br />
| character_set_client     | latin1                           | <br />
| character_set_connection | latin1                           | <br />
| character_set_database   | latin1                           | <br />
| character_set_filesystem | binary                           | <br />
| character_set_results    | latin1                           | <br />
| character_set_server     | latin1                           | <br />
| character_set_system     | utf8                             | <br />
| character_sets_dir       | /usr/local/mysql/share/charsets/ | <br />
+--------------------------+----------------------------------+                          | <br />
<br />
   take changing to GBK for example, I know two ways to make it.<br />
1. client can send &quot;set names 'gbk'&quot; to mysql<br />
2. config mysql as default-character-set=utf8<br />
<br />
   except above ways, hwo can i init mysqlproxy charset as GBK ? <br />
<br />
   I found in tutorial-scramble.lua, there are :<br />
     <br />
proto.to_response_packet({<br />
                                 username = mapped.new_user,<br />
                                 response = password.scramble(s.scramble_buffer, password.hash(mapped.new_password)),<br />
                                  charset  = 8, -- default charset<br />
                                  database = c.default_db,<br />
                                max_packet_size = 1 * 1024 * 1024<br />
<br />
then i changed the charset to 3 fot testing, when i starting mysqlproxy with loading the lua, but logon mysql, use &quot;show variables like '%set%';&quot;, there are no changes for charset.<br />
<br />
   can anyone help me ? thanks in advance!]]></description>
            <dc:creator>hank wang hank</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Wed, 21 Nov 2012 10:33:37 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,573968,573968#msg-573968</guid>
            <title>MySQL Proxy works from command line but not as service (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,573968,573968#msg-573968</link>
            <description><![CDATA[ Using: Windows Vista, Proxy 0.8.3 and ODBC connector<br />
<br />
I can start the MySQL proxy from the command line or as a Windows service with identical command options. When running from command line it works fine, I can connect to the database. When running as a service it gives an error 'all backends are down'.]]></description>
            <dc:creator>Paul Berezansky</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Fri, 16 Nov 2012 22:23:29 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,573026,573026#msg-573026</guid>
            <title>Starting up mysql_proxy 0.8.3 on Linux (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,573026,573026#msg-573026</link>
            <description><![CDATA[ After installing mysql_proxy 0.8.3  on my Linux Slackware server and trying to run the command I get two replies; a reply saying &quot;cannot execute binary&quot; and another reply saying &quot;success&quot;<br />
<br />
Here's the command line:<br />
path/to/proxy# mysql-proxy --defaults-file=../../../etc/myproxy.cnf --user=root --password=password<br />
mysql-proxy: line 52: /path/to/proxy/mysql-proxy:cannot execute binary file<br />
mysql-proxy: line 52: /path/to/proxy/mysql-proxy:Success<br />
<br />
the response is the same if I run the command without the &quot;defaults-file&quot; or user/password parameters.<br />
 <br />
The &quot;line 52&quot; has no meaning to me as it's certainly not from the myproxy cnf file (it has less than 52 lines) and the error log is empty.<br />
<br />
I'll update this periodically with more information.]]></description>
            <dc:creator>Joe Pease</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Mon, 05 Nov 2012 19:12:06 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,571565,571565#msg-571565</guid>
            <title>how proxy handles Lua memory (1 reply)</title>
            <link>http://forums.mysql.com/read.php?146,571565,571565#msg-571565</link>
            <description><![CDATA[ The MySQL Proxy Guide says (in the FAQ):<br />
=============================================<br />
7.14: As the script is re-read by MySQL Proxy, does it cache this or is it looking at the file system with each request?<br />
It looks for the script at client-connect and reads it if it has changed, otherwise it uses the cached version.<br />
=============================================<br />
<br />
Does this mean Lua remains active while the proxy is running, or does the script get recompiled and run every time there is a request?<br />
<br />
I'm working on a project to translate queries from an application that expects its database in a particular form to a database with different field table names. Because of this, I have to load several fairly large dictionaries (or hash tables, if you prefer) that discribe the translation at the start of the lua script. These aren't too large (probably on the order of 128-256 KB), but I suspect proformance would be hampered if every time a query is run, the tables have to be added to memory and then removed after.<br />
Is that how mysql-proxy handles this? If so, is it something to worry about and/or is there a fix?<br />
<br />
Thanks]]></description>
            <dc:creator>Charles Knight</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Thu, 25 Oct 2012 12:10:57 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,570727,570727#msg-570727</guid>
            <title>Mysql-Proxy write-only and read-write cases (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,570727,570727#msg-570727</link>
            <description><![CDATA[ At the moment I have one LIVE database. I want to create another ARCHIVE database.<br />
<br />
I guess I can use mysql-proxy which will duplicate DB alter queries to both servers and SELECT queries only to live DB.<br />
<br />
Is it possible with mysql-proxy?]]></description>
            <dc:creator>kay kay</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Thu, 11 Oct 2012 12:45:25 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,568208,568208#msg-568208</guid>
            <title>Some Queries not being logged by MySQL Proxy (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,568208,568208#msg-568208</link>
            <description><![CDATA[ Hello,<br />
<br />
I am using mysql proxy in front of my database server to log all queries submitted by users.<br />
<br />
Overall the proxy logging works and has worked for me for years.<br />
However, recently i had a user running a select * from some_table and his queries were not being logged even though he was going through the proxy.<br />
<br />
This user was running select * every night on 10-15 different tables and every night the mysql proxy only logged <br />
&quot;set autocommit=1&quot;<br />
The rest of the query was not logged.<br />
<br />
The user is coming from windows using SAS and odbc to run his query. <br />
<br />
The odd thing is that the logging works without exception for everyone else.<br />
<br />
Has anybody had a similar problem? <br />
<br />
I am currently working on duplicating the problem but it has been a challenge since I am not a big windows or SAS user. <br />
<br />
Here is some of my code that I am using.<br />
<br />
function read_query( packet )<br />
 if string.byte(packet) == proxy.COM_QUERY then<br />
   local query = string.sub(packet, 2)<br />
   logline = ( string.format(&quot;# %s -- %s@%s/%s  -- [ %6d ] %s\n%s\n\n&quot;, os.date('%Y-%m-%d %H:%M:%S'),<br />
        proxy.connection.client.username,<br />
        proxy.connection.server.dst.name,<br />
        proxy.connection.server[&quot;default_db&quot;],<br />
        proxy.connection.server.thread_id,<br />
        proxy.connection.client.src.name,<br />
        query ))<br />
   writelogline ( logline )<br />
 end<br />
end<br />
<br />
I am running:<br />
mysql-proxy 0.8.0<br />
  glib2: 2.24.2<br />
  libevent: 1.4.13-stable<br />
  lua: Lua 5.1.4<br />
    LUA_PATH: /usr/lib/mysql-proxy/lua/?.lua<br />
    LUA_CPATH: /usr/lib/mysql-proxy/lua/?.so<br />
  == plugins ==<br />
  admin: 0.7.0<br />
  proxy: 0.7.0]]></description>
            <dc:creator>Eric Hernandez</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Tue, 11 Sep 2012 19:57:09 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,566772,566772#msg-566772</guid>
            <title>MySQL Proxy: 0.8.3 released (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,566772,566772#msg-566772</link>
            <description><![CDATA[ MySQL Proxy: 0.8.3 released<br />
<a href="http://jan.kneschke.de/2012/8/30/mysql-proxy-0-8-3-released"  rel="nofollow">http://jan.kneschke.de/2012/8/30/mysql-proxy-0-8-3-released</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Thu, 30 Aug 2012 15:11:43 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,564278,564278#msg-564278</guid>
            <title>Installing from bazaar, dependency issues (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,564278,564278#msg-564278</link>
            <description><![CDATA[ Hi there!<br />
<br />
First of sorry but I'm a total noob regarding Autoconf'y things.<br />
<br />
I am thinking about starting to use the mysql-proxy bazaar source repo <br />
for creating packages for my servers. Uppon following the data on: <br />
<a href="http://dev.mysql.com/doc/refman/5.1/en/mysql-proxy-install-cvs.html"  rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/mysql-proxy-install-cvs.html</a> <br />
and the install note that comes with the source I am a bit confused. <br />
The install note states that I should have libtool 1.5.x but not newer <br />
even though the project seems to compile fine (note: i have not tested <br />
the binary itself, it only compiles) after satisfying it's <br />
dependencies.<br />
<br />
Also I had to do some modifications:<br />
Apparently gtk-doc is also needed for this, I understand that many <br />
development machines may have this by default but still it's a <br />
dependency especially if someone is making this in a server image.<br />
The macro &quot;AM_C_PROTOTYPES&quot; in /configure.in produces error<br />
`configure.in:58: error: automatic de-ANSI-fication support has been <br />
removed' so I butchered it (sorry, as stated I'm a noob)<br />
A non-POSIX warning forces me to include AM_PROG_AR<br />
<br />
So, as I said this 'thing' compiled and now I probably am going to <br />
step into a world of hurt trying to find out why it, potentially, <br />
won't work.<br />
<br />
Is there anyone interested in giving me some guidelines?]]></description>
            <dc:creator>Kiriakos Krastillis</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Tue, 07 Aug 2012 18:33:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,563421,563421#msg-563421</guid>
            <title>mysql-proxy (error:08S01/1047) (1 reply)</title>
            <link>http://forums.mysql.com/read.php?146,563421,563421#msg-563421</link>
            <description><![CDATA[ mysql-proxy (about:08S01/1047)<br />
<br />
1.topology:<br />
  <br />
mysql-proxy   (10.1.1.1)<br />
mysql-master  (10.1.1.2-Only-write)  <br />
mysql-slave   (10.1.1.3-Only-read)<br />
<br />
2.Environment:<br />
  RHEL-5.5-64<br />
  MySQL-5.5.20<br />
  MySQL-Proxy-0.8.2<br />
<br />
3.Config:<br />
   MySQL-Proxy:<br />
       vim /usr/local/mysql-proxy/share/doc/mysql-proxy/rw-splitting.lua<br />
                            min_idle_connections = 1,<br />
                            max_idle_connections = 1,<br />
       vim /usr/local/bin/mysql-proxy<br />
         /usr/local/mysql-proxy/bin/mysql-proxy <br />
         --proxy-address=10.1.1.1:4040<br />
         --proxy-read-only-backend-addresses=10.1.1.3:3306  <br />
         --proxy-backend-addresses=10.1.1.2:3306 <br />
         --proxy-lua-script=/usr/local/mysql-proxy/share/doc/mysql-proxy/rw-splitting.lua    <br />
         --log-level=debug <br />
         --log-file=/var/log/mysql-proxy.log<br />
         --daemon<br />
<br />
   Master:<br />
       create database db1;<br />
          Use db1<br />
          Create table t1(id int);<br />
          Insert into t1 vaslues(1111);<br />
          Grant all on db1.* to testing@&quot;%&quot; identified by &quot;testing~!@#$%^&amp;*&quot;<br />
<br />
   Slave:<br />
       create database db1;<br />
          Use db1<br />
          Create table t1(id int);<br />
          Insert into t1 values(2222);<br />
          Grant all on db1.* to testing@&quot;%&quot; identified by &quot;testing~!@#$%^&amp;*&quot;<br />
<br />
<br />
4.Verify:(client login test)<br />
<br />
First time:          <br />
mysql -utesting -h 10.1.1.1 -P4000 -p<br />
mysql&gt;select * from db1.t1;<br />
+------+<br />
| id   |<br />
+------+<br />
|1111  | <br />
+------+<br />
3 rows in set (0.02 sec)<br />
<br />
mysql&gt;show processlist;<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
| Id    | User    | Host                 | db   | Command | Time | State | Info             |<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
| 22030 | testing | 10.1.1.1:46536       | NULL | Query   |    0 | NULL  | show processlist |<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
1 row in set (0.02 sec)<br />
<br />
<br />
Secondary time:        <br />
mysql -utesting -h 10.1.1.1 -P4000 -p<br />
mysql&gt;select * from db1.t1;<br />
+------+<br />
| id   |<br />
+------+<br />
|1111  | <br />
+------+<br />
3 rows in set (0.02 sec)<br />
<br />
mysql&gt; show processlist;<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
| Id    | User    | Host                 | db   | Command | Time | State | Info             |<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
| 22030 | testing | 10.1.1.1:46536       | NULL | Query   |    0 | NULL  | show processlist |<br />
| 22636 | testing | 10.1.1.1:60080       | NULL | Sleep   |    3 |       | NULL             |<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
2 rows in set (0.02 sec)<br />
<br />
<br />
third time:          <br />
mysql -utesting -h 10.1.1.1 -P4000 -p<br />
mysql&gt;select * from db1.t1;<br />
+------+<br />
| id   |<br />
+------+<br />
|2222  | <br />
+------+<br />
3 rows in set (0.02 sec)<br />
<br />
mysql&gt; show processlist;<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
| Id    | User    | Host                 | db   | Command | Time | State | Info             |<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
| 22030 | testing | 10.1.1.1:46536       | NULL | Query   |    0 | NULL  | show processlist |<br />
| 22636 | testing | 10.1.1.1:60080       | NULL | Sleep   |    3 |       | NULL             |<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
2 rows in set (0.02 sec)<br />
<br />
ssh 10.1.1.3<br />
mysql&gt;show processlist;<br />
<br />
|  6 | testing     | 10.1.1.1:54607 | NULL | Sleep   |    44 | <br />
<br />
<br />
four time:           <br />
mysql -utesting -h 10.1.1.1 -P4000 -p<br />
mysql&gt;select * from db1.t1;<br />
+------+<br />
| id   |<br />
+------+<br />
|2222  | <br />
+------+<br />
3 rows in set (0.02 sec)<br />
<br />
mysql&gt; show processlist;<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
| Id    | User    | Host                 | db   | Command | Time | State | Info             |<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
| 22030 | testing | 10.1.1.1:46536       | NULL | Query   |    0 | NULL  | show processlist |<br />
| 22636 | testing | 10.1.1.1:60080       | NULL | Sleep   |    3 |       | NULL             |<br />
+-------+---------+----------------------+------+---------+------+-------+------------------+<br />
2 rows in set (0.02 sec)<br />
<br />
<br />
ssh 10.1.1.3<br />
mysql&gt;show processlist;<br />
<br />
|  6 | testing     | 10.1.1.1:54607 | NULL | Sleep   |    44 |<br />
|  8 | testing     | 10.1.1.1:57976 | NULL | Sleep   |    32 |<br />
<br />
<br />
five time:<br />
tell me error:<br />
 ERROR 1047 (08S01): Unknown command<br />
<br />
4.Question:<br />
 1&gt;proxy must be a options about set max_connections.<br />
 2&gt;when proxy login master/slave ,i quite proxy,<br />
   but proxy don't quit master/slave  automatically.<br />
<br />
5.about log messages:<br />
<br />
2012-07-31 19:20:38: (message) mysql-proxy 0.8.2 started<br />
2012-07-31 19:20:38: (debug) max open file-descriptors = 102400<br />
2012-07-31 19:20:38: (message) proxy listening on port 10.1.1.1:4000<br />
2012-07-31 19:20:38: (message) added read/write backend: 10.1.1.2:3306<br />
2012-07-31 19:20:38: (message) added read-only backend: 10.1.1.3:3306<br />
2012-07-31 19:21:58: (debug) [network-mysqld.c:937]: error on a connection (fd: -1 event: 0). closing client connection.]]></description>
            <dc:creator>wei biao</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Wed, 01 Aug 2012 12:16:00 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,563299,563299#msg-563299</guid>
            <title>0.8.2 won't connect to MySQL (1 reply)</title>
            <link>http://forums.mysql.com/read.php?146,563299,563299#msg-563299</link>
            <description><![CDATA[ OSX Server 10.6.8, mysql-proxy 0.8.2 binary<br />
<br />
I'm getting these errors logged:<br />
<br />
network-socket.c:401: bind(/var/mysql/mysql.sock) failed: Address already in use (48)<br />
chassis-mainloop.c:267: applying config of plugin proxy failed<br />
mysql-proxy-cli.c:595: Failure from chassis_mainloop. Shutting down.<br />
<br />
from this config:<br />
<br />
[mysql-proxy]<br />
daemon = true<br />
plugins = proxy<br />
proxy-skip-profiling = true<br />
proxy-address = /var/mysql/mysql.sock<br />
proxy-backend-addresses = x.x.x.x:3306<br />
log-file = /devlogs/mysql-proxy/myproxy.log<br />
<br />
or even a simple config like this<br />
<br />
[mysql-proxy]<br />
proxy-backend-addresses = 209.80.41.210:3306<br />
log-file = /devlogs/mysql-proxy/myproxy.log<br />
 <br />
<br />
I've setup mysql-proxy a couple times before (earlier versions), and I don't recall a big hoopla. It just worked. Now I'm pulling my hair out.<br />
<br />
For now, I'm just trying to get a single box to have an application's mysql connection go through proxy. The app is configured to use 127.0.0.1:4040 for its connection.<br />
<br />
I've tinkered with a number of combinations of config setting. With and without daemon, plugins, proxy-address, and others.<br />
<br />
I've used proxy-address with the socket, an IP address, and 127.0.0.1. No difference.<br />
<br />
If I launch mysql-proxy from command line with no options it seems to work (my app connects to the DB), but as as soon as I define a proxy-backend-addresses I get no connection -- despite config setups identical to my other running installations. <br />
<br />
Whether I do any of this by command-line options or cnf file, I get the same non-working results.<br />
<br />
Even a simple &quot;mysql-proxy --proxy-backend-addresses = x.x.x.x:3306&quot; on the command line isn't working.<br />
<br />
Something about 0.8.2 is different, and I can't figure it out.<br />
<br />
Any ideas? Many thanks in advance.<br />
<br />
-- gw]]></description>
            <dc:creator>Greg Willits</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Tue, 31 Jul 2012 04:27:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,562973,562973#msg-562973</guid>
            <title>login problem (3 replies)</title>
            <link>http://forums.mysql.com/read.php?146,562973,562973#msg-562973</link>
            <description><![CDATA[ I have a master/slave replication pair.  <br />
<br />
I have set up mysql-proxy on a client machine, with --proxy-backend-addresses=one:3360,the-other:3360 (ip addresses).  <br />
<br />
The proxy starts up OK, listens on the configured port (3307), and answers.<br />
<br />
When I do mysql -h localhost -P 3307 known-good-user -p=known-password ,  it fails with:<br />
<br />
<br />
ERROR 1045 (28000): Access denied for user 'known-good-user'@'localhost' (using password: YES)<br />
<br />
... and it's pretty much instant about it.<br />
<br />
<br />
When I run mysql straight at either actual host, it succeeds fine but takes a little while to log in (I suspect due to some stupid reverse-dns issue).  <br />
<br />
<br />
Anybody have a clue stick to hit me with on this one?  Thanks.]]></description>
            <dc:creator>Eric Weaver</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Fri, 27 Jul 2012 17:30:16 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,562229,562229#msg-562229</guid>
            <title>Global variables - concurrency control (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,562229,562229#msg-562229</link>
            <description><![CDATA[ Hi,<br />
<br />
I want to use MySQL-Proxy with rw-splitting to disburden our Mysql-Master.<br />
90-95% of the incoming queries are read queries. So I plan to split them to one or more Mysql-Slave-Server.<br />
The new environment should manage 50-80 user connections per second with up to 500 queries per connection. <br />
<br />
<br />
Are there any known issues with the use of global variables in the lua script? <br />
How are they processed? Is there something like a concurrency control?<br />
<br />
Regards<br />
<br />
Manuel]]></description>
            <dc:creator>Manuel Abbt</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Sat, 21 Jul 2012 14:57:58 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,558778,558778#msg-558778</guid>
            <title>0.8.2 - mysql.tokenizer not found? (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,558778,558778#msg-558778</link>
            <description><![CDATA[ What happened to the 'mysql.tokenizer' module? <br />
It doesn't appear to be in th distribution anymore.<br />
We are getting an error when using our custom RW splitter script...<br />
<br />
-- from the output log --<br />
<br />
2012-06-25 15:23:16: (critical) (lua-error) [/d01/mysql/proxy/lua/rw-splitting-with-routines.lua]<br />
...roxy/current/lib/mysql-proxy/lua/proxy/tokenizer.lua:22: module 'mysql.tokenizer' not found:<br />
	no field package.preload['mysql.tokenizer']<br />
	no file '/d01/mysql/proxy/current/lib/mysql-proxy/lua/mysql/tokenizer.lua'<br />
	no file '/d01/mysql/proxy/lua/mysql/tokenizer.lua'<br />
	no file '/usr/lib/x86_64-linux-gnu/lua/5.1/luasql/mysql/tokenizer.so'<br />
	no file '/d01/mysql/proxy/current/lib/mysql-proxy/lua/mysql/tokenizer.so'<br />
	no module 'mysql.tokenizer' in file '/usr/lib/x86_64-linux-gnu/lua/5.1/luasql/mysql.so'<br />
2012-06-25 15:23:16: (critical) (lua-error) [/d01/mysql/proxy/lua/rw-splitting-with-routines.lua]<br />
[string &quot;/d01/mysql/proxy/lua/rw-splitting-with-rout...&quot;]:39: loop or previous error loading module 'proxy.tokenizer']]></description>
            <dc:creator>Van Stokes</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Mon, 25 Jun 2012 19:26:35 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,558570,558570#msg-558570</guid>
            <title>(critical) .\mysql-proxy-cli.c:477: Invalid byte sequence i (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,558570,558570#msg-558570</link>
            <description><![CDATA[ 2012-06-24 15:58:10: (critical) .\mysql-proxy-cli.c:477: Invalid byte sequence in conversion input<br />
<br />
I try to run MySQL Proxy but I got this error.<br />
how can I solve this issue?]]></description>
            <dc:creator>Pera Kajonpotisuwan</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Sun, 24 Jun 2012 09:04:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,557317,557317#msg-557317</guid>
            <title>show error &quot;mysqli::mysqli(): (08S01/1047): Unknown command&quot; (2 replies)</title>
            <link>http://forums.mysql.com/read.php?146,557317,557317#msg-557317</link>
            <description><![CDATA[ Hi all<br />
<br />
I have run Mysql proxy 0.8.2 with mysql 5.5.25 read-write server. But very Strange case that I get error &quot;Unknown command&quot; when I have insert record into DB via proxy but no error direct access read-write server. Here is proxy log as below:<br />
<br />
<br />
2012-06-12 17:51:52: (message) chassis-unix-daemon.c:136: [angel] we try to keep PID=2530 alive<br />
2012-06-12 17:51:52: (debug) chassis-unix-daemon.c:157: waiting for 2530<br />
2012-06-12 17:51:52: (debug) chassis-unix-daemon.c:121: we are the child: 2530<br />
2012-06-12 17:51:52: (message) mysql-proxy 0.8.2 started<br />
2012-06-12 17:51:52: (debug) max open file-descriptors = 1024<br />
2012-06-12 17:51:52: (message) proxy listening on port 192.168.1.20:3306<br />
2012-06-12 17:51:52: (message) added read/write backend: 192.168.1.21<br />
2012-06-12 17:51:52: (message) added read-only backend: 192.168.1.22<br />
2012-06-12 17:52:04: (debug) [network-mysqld.c:937]: error on a connection (fd: -1 event: 0). closing client connection.<br />
2012-06-12 17:59:36: (debug) last message repeated 29 times<br />
2012-06-12 17:59:36: (debug) [network-mysqld.c:937]: error on a connection (fd: -1 event: 0). closing client connection.<br />
2012-06-12 18:03:38: (debug) last message repeated 8 times<br />
2012-06-12 18:03:38: (debug) [network-mysqld.c:937]: error on a connection (fd: -1 event: 0). closing client connection.<br />
2012-06-12 18:06:59: (debug) last message repeated 22 times<br />
2012-06-12 18:06:59: (debug) [network-mysqld.c:937]: error on a connection (fd: -1 event: 0). closing client connection.<br />
2012-06-12 18:14:58: (message) chassis-unix-daemon.c:136: [angel] we try to keep PID=2591 alive<br />
2012-06-12 18:14:58: (debug) chassis-unix-daemon.c:157: waiting for 2591<br />
2012-06-12 18:14:58: (debug) chassis-unix-daemon.c:121: we are the child: 2591<br />
2012-06-12 18:14:58: (message) mysql-proxy 0.8.2 started<br />
2012-06-12 18:14:58: (debug) max open file-descriptors = 1024<br />
2012-06-12 18:14:58: (message) proxy listening on port 192.168.1.20:3306<br />
2012-06-12 18:14:58: (message) added read/write backend: 192.168.1.21<br />
2012-06-12 18:14:58: (message) added read-only backend: 192.168.1.22<br />
2012-06-12 18:15:08: (debug) [network-mysqld.c:937]: error on a connection (fd: -1 event: 0). closing client connection.<br />
2012-06-12 18:26:07: (message) chassis-unix-daemon.c:136: [angel] we try to keep PID=2627 alive<br />
2012-06-12 18:26:07: (debug) chassis-unix-daemon.c:157: waiting for 2627<br />
2012-06-12 18:26:07: (debug) chassis-unix-daemon.c:121: we are the child: 2627<br />
2012-06-12 18:26:07: (message) mysql-proxy 0.8.2 started<br />
2012-06-12 18:26:07: (debug) max open file-descriptors = 1024<br />
2012-06-12 18:26:07: (message) proxy listening on port 192.168.1.20:3306<br />
2012-06-12 18:26:07: (message) added read/write backend: 192.168.1.21<br />
2012-06-12 18:26:07: (message) added read-only backend: 192.168.1.22<br />
2012-06-12 18:26:18: (debug) [network-mysqld.c:937]: error on a connection (fd: -1 event: 0). closing client connection.<br />
2012-06-12 18:26:58: (message) chassis-unix-daemon.c:136: [angel] we try to keep PID=2644 alive<br />
2012-06-12 18:26:58: (debug) chassis-unix-daemon.c:157: waiting for 2644<br />
2012-06-12 18:26:58: (debug) chassis-unix-daemon.c:121: we are the child: 2644<br />
2012-06-12 18:26:58: (message) mysql-proxy 0.8.2 started<br />
2012-06-12 18:26:58: (debug) max open file-descriptors = 1024<br />
2012-06-12 18:26:58: (message) proxy listening on port 192.168.1.20:3306<br />
2012-06-12 18:26:58: (message) added read/write backend: 192.168.1.21<br />
2012-06-12 18:26:58: (message) added read-only backend: 192.168.1.22<br />
<br />
anyone can help?<br />
Tks!]]></description>
            <dc:creator>hanky cheng</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Mon, 20 Aug 2012 06:51:09 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,543227,543227#msg-543227</guid>
            <title>How To Use SQL in Proxy ? (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,543227,543227#msg-543227</link>
            <description><![CDATA[ Tell me how use SQL in proxy. i have no idea about this.<br />
<b><a href="http://www.infashiononline.com/category.php?id=24&amp;web_user=1"  rel="nofollow">Designer Leather Sandals</a> | <a href="http://www.infashiononline.com/category.php?id=24&amp;web_user=1"  rel="nofollow">Leather Sandals UK</a></b>]]></description>
            <dc:creator>John Arnold</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Mon, 28 May 2012 12:57:49 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?146,532966,532966#msg-532966</guid>
            <title>connecting MySQL on AWS using ODBC Connector (no replies)</title>
            <link>http://forums.mysql.com/read.php?146,532966,532966#msg-532966</link>
            <description><![CDATA[ MySQL server is running on EC2 in AWS. I want to create a ODBC data source using ODBC Database Administrator. I am able to connect it from home. But when i try from office it always fails. I think this is because of the proxy settings inside office.<br />
<br />
Can we use mysql-proxy to create ODBC data source from office to MySQL db on AWS ?<br />
<br />
Note: I know it is not a secured way to expose 3306 port outside of the public cloud. This is only for experiment.]]></description>
            <dc:creator>Uday kumar</dc:creator>
            <category>MySQL Proxy</category>
            <pubDate>Thu, 10 May 2012 11:48:22 +0000</pubDate>
        </item>
    </channel>
</rss>
