← Back to team overview

mysql-proxy-discuss team mailing list archive

Re: Looking for feedback - Short options for MySQL Proxy

 

Hi,

I just pushed some changes to the branch
https://code.launchpad.net/~diego-fmpwizard/mysql-proxy/short-options
and this is how it works (for now?)

The old way was

/Applications/mysql/gpl-short-options-proxy/bin/mysql-proxy  \
--proxy-lua-script=/Users/wizard/etools/mysql-gpl-proxy/lib/rw-splitting.lua \
--proxy-backend-addresses=127.0.0.1:5130 \
--proxy-backend-addresses=127.0.0.1:5067 \
--proxy-address=:44040


and the new one is

/Applications/mysql/gpl-short-options-proxy/bin/mysql-proxy \
-s /Users/wizard/etools/mysql-gpl-proxy/lib/rw-splitting.lua \
-b 127.0.0.1:5130 \
-b 127.0.0.1:5067 \
-P :44040


Note that using the short options, you need a space between the option
and the actual parameter, and if you try using an equal sign, you get
an error.

Let me know if this is ok or something I should look into to make it better.

Thanks

Diego


-P   --proxy-address=<host:port>
-r  --proxy-read-only-backend-addresses=<host:port>
-b   --proxy-backend-addresses=<host:port>
-s  --proxy-lua-script=<file>



On Sat, Feb 28, 2009 at 11:05 AM, Diego Medina <diego@xxxxxxxxxxxxx> wrote:
> Hi Everyone,

-- 
Diego Medina
Web Developer
http://www.fmpwizard.com



References