MySQL Forums
Forum List  »  Router & Proxy

Re: MySQL Proxy 0.7.2 Windows Service
Posted by: Chris Calender
Date: October 29, 2009 12:22PM

You'll likely need to specify the full path to your mysql-proxy.conf file to get it to work in this manner.

For instance, I created the following service, it starts up fine, and it works properly:

sc create "proxy2" DisplayName= "MySQL Proxy2" start= "auto" binPath= "C:\Program Files\MySQL\mysql-proxy-0.7.2\bin\mysql-proxy-svc.exe --defaults-file=C:\mysql-proxy.conf"

Here is my console output:

C:\Program Files\MySQL\mysql-proxy-0.7.2\bin>sc create "proxy2" DisplayName= "MySQL Proxy2" start= "auto" binPath= "C:\Program Files\MySQL\mysql-proxy-0.7.2\bin\mysql-proxy-svc.exe --defaults-file=C:\mysql-proxy.conf"
[SC] CreateService SUCCESS

C:\Program Files\MySQL\mysql-proxy-0.7.2\bin>net start proxy2
The MySQL Proxy2 service is starting.
The MySQL Proxy2 service was started successfully.

C:\Program Files\MySQL\mysql-proxy-0.7.2\bin>net stop proxy2
The MySQL Proxy2 service is stopping.
The MySQL Proxy2 service was stopped successfully.

C:\Program Files\MySQL\mysql-proxy-0.7.2\bin>net start proxy2
The MySQL Proxy2 service is starting.
The MySQL Proxy2 service was started successfully.

Note that I did try without paths for the --defaults-file (while placing the .conf file in several locations), and it did not start. So I would bet that this is the problem you're encountering.

Options: ReplyQuote


Subject
Views
Written By
Posted
5082
September 08, 2009 03:48AM
Re: MySQL Proxy 0.7.2 Windows Service
3860
October 29, 2009 12:22PM
2513
October 30, 2009 05:27AM


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.