Bug #48589 MySQL Proxy installation details need updating
Submitted: 6 Nov 4:59 Modified: 6 Nov 5:07
Reporter: Jonathon Coombes
Status: Verified
Category:Proxy: Docs Severity:S3 (Non-critical)
Version:0.7.x OS:Any
Assigned to: MC Brown Target Version:
Tags: monitor, mem, proxy, mysql-proxy
Triage: Triaged: D4 (Minor)

[6 Nov 4:59] Jonathon Coombes
Description:
The documentation regarding the installation of the MySQL proxy is outdated. Details in
the manual at:

http://dev.mysql.com/doc/refman/5.1/en/mysql-proxy-install-binary.html

indicate the method as:

shell> tar zxf mysql-proxy-0.5.0.tar.gz
shell> cp ./mysql-proxy-0.5.0/sbin/mysql-proxy /usr/local/sbin

The proxy version is now 0.7.2, but more importantly, the above breaks installation when
using the community binaries downloaded from the MySQL site. 

The binaries are compiled so that the subdirectories are searched relatively to each
other, which means that the user has to copy not only the sbin directory, but also
libexec, share etc to the appropriate /usr/local directory, more simply to add the new
install directory to their path.

How to repeat:
Download latest mysql-proxy binary for Linux.

Follow installation directions as defined in the manual.

Suggested fix:
shell> cd /usr/local
shell> tar zxf mysql-proxy-0.7.2.tar.gz
shell> ln -s mysql-proxy-0.7.2 mysql-proxy
shell> export PATH=$PATH:/usr/local/mysql-proxy/sbin:/usr/local/mysql-proxy/bin

Make the PATH change by updating the appropriate system file (/etc/profile, /etc/bashrc,
/etc/login.defs etc)