Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 am deploying a mysql server behind a proxy server (apache mod_proxy). I am getting this error when I try to connect using mysql client

Lost connection to MySQL server at 'reading initial communication packet', system error: 0

I tried both commenting and puting in mysql my.cnf noting is worked.

share|improve this question

migrated from Jun 21 '11 at 14:18

This question came from our site for professional and enthusiast programmers.

Is it related to programming? – Shakti Singh Jun 21 '11 at 8:16
I might be mistaking but is the proxy mod of apache not limited to http/https protocol? Would it not require a proper proxy installation? – Zenklys Jun 21 '11 at 8:17
@Shakti Singh It relate when it comes to setup a connection in php.(mysql_connect). it gives the same error – gihan Jun 21 '11 at 8:26
@cularis sorry I'll put there also – gihan Jun 21 '11 at 8:26
@gihan: It is all about configure mysql server behind a proxy server nothing else – Shakti Singh Jun 21 '11 at 8:27
up vote 0 down vote accepted

My comment above seems confirmed by your post on server fault You cannot use the apache mod_proxy to "proxy" a mysql server.

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.