title: How to trace MySql queries using MySql-Proxy?
body: <p>I just downloaded the mysql-proxy and created this script lua (found in Mysql docs):</p>
  
  <pre><code>function read_query(packet)
     if string.byte(packet) == proxy.COM_QUERY then
       print("QUERY: " .. string.sub(packet, 2))
     end
   end
  </code></pre>
  
  <p>This is the command-line I'm using:</p>
  
  <pre><code>mysql-proxy -P localhost:1234 -b localhost:3306 --proxy-lua-script=profile.lua --plugins=proxy
  </code></pre>
  
  <p>When I run a simple query (like "select * from table1"), this error is reported: "failed: .\lua-scope.c:241: stat(C:...\profile.lua) failed: No error (0)"</p>
  
  <p>Note: If I run mysql-proxy without lua script, no error occurs. </p>
  
  <p>I need to install something to get mysql-proxy and query tracing working? </p>
  
  <p>My environment is Windows 7 Professional x64. </p>
  
  <p>Sorry the bad english.</p>