MySQL Forums
Forum List  »  Router & Proxy

Windows cannot start MySQL Proxy service
Posted by: Prashant C Chaturvedi
Date: May 07, 2012 09:15AM

I successfully created a windows service on Windows 7 64 bit by following command

>sc create "mysqlproxy" DisplayName= "MySQL Proxy" start= "auto" binPath= "C:\Program Files\MySQL\mysql-proxy-0.8.2-winx64-x86\bin\mysql-proxy-svc.exe --defaults-file=C:\Program Files\MySQL\mysql-proxy-0.8.2-winx64-x86\conf\mysql-proxy.conf"

Output: [SC] CreateService SUCCESS

My mysql-proxy.conf is as below:

[mysql-proxy]
log-file = proxy.log
log-level = debug
proxy-backend-addresses = 172.16.47.122:3306
proxy-read-only-backend-addresses = 172.16.47.161:3306

In which 172.16.47.122 server has mysql-proxy. MySQL server is running as master on 172.16.47.122:3306 and slave is running on 172.16.47.161:3306

When I start the service by issuing following command, it doesn't start:
>net start mysqlproxy

Output:

The MySQL Proxy service is starting.
The MySQL Proxy service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.

What could be wrong in the configuration?

When I start the mysql-proxy as service with any command line arguments it works fine, but I need to specify backend addresses



Edited 1 time(s). Last edit at 05/07/2012 09:16AM by Prashant C Chaturvedi.

Options: ReplyQuote


Subject
Views
Written By
Posted
Windows cannot start MySQL Proxy service
4552
May 07, 2012 09:15AM


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.