Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two linux machines, A and B. A is master and B is slave. Besides, B is behind proxy. In B , I have set http_proxy and socks_proxy env variable.

However, B cannot connect to A and report ERROR CODE 2013

error connecting to master 'repl@' 
Slave_IO_Running  No 
Slave_SQL_Running Yes 

I try to fix it in whole days but still in vain. Whats' wrong, thank you.

share|improve this question

It looks like you must grant privileges to repl user to allow connect from the proxy P, something like this:

share|improve this answer
I have done it already – Bear Oct 7 '11 at 6:21
Did you run flush privileges;? Can you telnet master_IP 3306 from slave? – quanta Oct 7 '11 at 6:24

I dont think mysql supports http proxys unless youre talking about the Tool "MYSQL Proxy".

You might need a simple port forward or vpn for this connection.

Would be awesome if they added http proxy support in the newer version or did i just miss the part in the manual...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.