WEB2.0/프로그래밍

Lost connection to MySQL server at 'reading initial communication packet'

나를찾는아이 2013. 2. 22. 18:23
728x90
반응형

Lost connection to MySQL server at 'reading initial communication packet'

MYSQL DB의 USER의 권한을 허용하였으나 mysql_connect시 연결이 안되고 위와 같은 에러가 나타날때는


서버의 IPTABLES를 살펴보세요.



hosts.allow에 아래와 같이 접속 허용이 되어 있어야 합니다.


# vi /etc/hosts.allow


ALL: 123.456.678.123 123.245.364.234


이렇게 입력하시거나


SSH: 123.456.678.123 123.245.364.234
MYSQL: 123.456.678.123 123.245.364.234




728x90
반응형