MySQL Forums
Forum List  »  Router & Proxy

Multiple 'proxy-address' statements?
Posted by: Adam McLean
Date: May 04, 2010 02:37PM

I'm trying to fool an application that normally connects to a database on 'localhost':3306, and also uses a mysql.sock socket file. I'd like to keep the MySQL database separate without editing 100s of files where they've hard-coded 'localhost' or 'mysql.sock' in their code.

I'd like to use the proxy for this purpose (which I think is a pretty simple use case).

I'm having trouble getting the proxy to provide BOTH the localhost:3306 AND the mysql.sock. I can get it to work for either of them by specifying:
'proxy-address = 127.0.0.1:3306'
- or -
'proxy-address = [path]/mysql.sock'

In my configuration file.

Can anyone point me to a way to get this working?

Thanks!



Edited 1 time(s). Last edit at 05/04/2010 02:37PM by Adam McLean.

Options: ReplyQuote


Subject
Views
Written By
Posted
Multiple 'proxy-address' statements?
4685
May 04, 2010 02:37PM


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.