master plugin problem on mysql-proxy-replication branch

Asked by Miguel Araújo

I'm trying to get the master plugin from mysql-proxy-replication branch to work. For a start I just want to get the Jan's script to work. This script can be found on: http://jan.kneschke.de/projects/mysql/druckbetankung/

Well, I've tried to complete the script and you can see it here: http://pastebin.com/aGVG97iW

When running the proxy with the master plugin and the Lua script, I try to connect it with a slave instance and get the following error on the proxy: attempt to index global 'binlog' (a nil value)

On the slave I get the following error: The slave I/O thread stops because a fatal error is encountered when it try to get the value of SERVER_ID variable from master. Error: MySQL Proxy Lua script failed to execute. Check the error log.

What is missing in the script?

Question information

Language:
English Edit question
Status:
Solved
For:
MySQL Proxy Edit question
Assignee:
No assignee Edit question
Solved by:
Miguel Araújo
Solved:
Last query:
Last reply:
Revision history for this message
Miguel Araújo (miguelaraujo) said :
#1

Problem solved: missing local binlog = assert(require("mysql.binlog"))