MySQL Forums
Forum List  »  Router & Proxy

can not find mysql/tokenizer
Posted by: Richard Shade
Date: June 22, 2010 05:16PM

I am using version mysql-proxy-0.8.0-linux-rhel5-x86-32bit on CentOS 5.5. I have copied the files to prefix=/usr/. I have created a config in /etc/mysql-proxy.cnf
event-threads = 1
max-open-files = 1024
log-file = /var/log/mysql-proxy.log
log-level = debug
lua-cpath = /usr/lib/mysql-proxy/lua/?.lua
lua-path = /usr/lib/mysql-proxy/lua/?.lua
plugin-dir = /usr/lib/mysql-proxy/plugins/
pid-file = /var/run/
proxy-address = :4040
proxy-backend-addresses =,
proxy-read-only-backend-addresses =,
proxy-lua-script = /usr/share/doc/mysql-proxy/rw-splitting.lua


and execute mysql proxy /usr/bin/mysql-proxy --defaults-file=/etc/mysql-proxy.cnf --daemon. I get the following error when using rw-splitting.lua.

2010-06-22 23:01:46: (critical) (lua-error) [/usr/lib/mysql/lua/rw-splitting.lua]
/usr/lib/mysql-proxy/lua/proxy/tokenizer.lua:20: module 'mysql.tokenizer' not found:
no field package.preload['mysql.tokenizer']
no file '/usr/lib/mysql-proxy/lua/mysql/tokenizer.lua'
no file '/usr/lib/mysql-proxy/lua/mysql/tokenizer.lua'
no file '/usr/lib/mysql-proxy/lua/mysql.lua'
2010-06-22 23:01:46: (critical) (lua-error) [/usr/lib/mysql/lua/rw-splitting.lua]
Anyone know how to solve this?

Options: ReplyQuote

Written By
can not find mysql/tokenizer
June 22, 2010 05:16PM

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

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.