Bug #44497 Wrong LUA_PATH on MySQL Proxy 0.7.0
Submitted: 27 Apr 2009 18:45 Modified: 17 Aug 2009 15:21
Reporter: Diego Medina Email Updates:
Status: Closed Impact on me:
Category:MySQL Proxy: Install/Config Severity:S2 (Serious)
Version:0.7.0 r 648 OS:Any
Assigned to: Jan Kneschke CPU Architecture:Any

[27 Apr 2009 18:45] Diego Medina
If you compile the mysql proxy from source, you end up with some lua files here


instead of 


This breaks some lua scripts that rely on files like admin-sql.lua among others

The file 

./sbin/mysql-proxy has


How to repeat:
1- Get the source from 

bzr branch lp:mysql-proxy

2- Compile it
3- go to the folder share/  and see the doc folder only

Suggested fix:
Revert to having the folder structure like


or fix ./sbin/mysql-proxy  to point to the correct folder.
[13 May 2009 11:40] Jan Kneschke
A fix is pushed to. Should be in 0.7.1

revno: 653
committer: jan@mysql.com
branch nick: trunk
timestamp: Tue 2009-05-12 21:24:31 +0200
  moved the plugings to ${libdir}/mysql-proxy/plugins/ and
  the lua extensions (.lua and .so) to ${libdir}/mysql-proxy/lua/
    * we need this for the future if we want to add other languages
[14 May 2009 3:13] Diego Medina
See related bug#44858
[25 Jun 2009 1:44] Enterprise Tools JIRA Robot
Diego Medina writes: 
Verified fixed on 0.7 branch
[17 Aug 2009 15:21] MC Brown
A note has been added to the 0.7.0 changelog: 

MySQL Proxy would be configured with the LUA_PATH and LUA_CPATHn directory locations according to the build, not execution, host. In addition, during installation, certain Lua source files could be installed into the incorrect location