Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 0.0.0.0 in mysql my.cnf noting is worked.

share|improve this question
    
Is it related to programming? –  Framework 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 –  Framework Jun 21 '11 at 8:27
show 2 more comments

migrated from stackoverflow.com Jun 21 '11 at 14:18

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

1 Answer

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
add comment

Your Answer

 
discard

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.