알려주신대로.. php에서.. postgres를 연동할 수 있게 해고요..
그래서 phpinfo() 하면..
MySQL Allow persistent links: Yes
Persistent links: 1/Unlimited
Total links: 1/Unlimited
Client API version: 3.22.30
Compilation definitions: MYSQL_INCLUDE=
MYSQL_LFLAGS=
MYSQL_LIBS=
PostgreSQL Allow persistent links: Yes
Persistent links: 0/Unlimited
Total links: 0/Unlimited
Compilation definitions: PGSQL_INCLUDE=
PGSQL_LFLAGS=
PGSQL_LIBS=
이렇게 추가가 됐어요.. 그럼 mysql과 postgresql 다 쓸 수 있는 것 맞죠??
근데..
$dbconn=pg_connect("ip","5432","user","password","DBname") or die ("디비접속 실패");
했더니만 이런 에러가 뜨네요..
Warning: Unable to connect to PostgresSQL server: pqReadData() // backend closed the channel unexpectedly. This probably means the backend terminated abnormally before or while processing the request. in dbconn2.inc on line 6
디비접속 실패
도대체 어떻게 해야 되죠? 며칠 째 이것만 붙잡고 있네요.. 도와주세요..
|