mysql
PHP Warning: mysql_connect(): Can’t connect to MySQL server on… (13)
은둔한량
2013. 10. 6. 16:08
반응형
방화벽 세팅까지 모두 풀어준 상태로 php에서 mysql 외부 접속이 안됨 ㅠㅠ
localhost는 된다 젠장
터미널에서 mysql -u testuser -p -h mysql.host.com testdb 접속시 된다 ㅠㅠ 댄장
뭘 잘못했단말인가 이것 저것 찾아봤다...
had exactly the same problem.
Found this website: http://www.beginlinux.com/server_training/web-server/976-apache-and-selinux
I issued “setsebool -P httpd_can_network_connect 1″ as root and httpd was able to connect to mysql
친절한 외쿡인이 저리 써놓았다.. http://googolflex.com/?p=482
setsebool -P httpd_can_network_connect 1 ==> root 권한으로다가 실행
된다 ^^;;
반응형