php连接postgresql的问题
<?php$host="localhost";$port="5432";$dbnmae="phppost";$user="postgres";$password="123...
<?php $host="localhost"; $port="5432"; $dbnmae="phppost"; $user="postgres"; $password="123456"; $conn=pg_connect("host=$host port=$port dbname=$dbname user=$user password=$pass"); ?> 上面是我用PHP连接POSTGRESQL的语句 但是一直报这个错? 我是刚学PHP的,请各位高手帮忙 Warning : pg_connect() [ function.pg-connect ]: Unable to connect to PostgreSQL server: fe_sendauth: no password supplied in D:\Program Files\Apache Group\Apache2\myPhp\php_post. php on line 7
展开
1个回答
展开全部
MAP IMAGETYPE PNG EXTENT 139.602 35.413 139.678 35.489 SIZE 300 300 IMAGECOLOR 255 255 255 SHAPEPATH "../data" FONTSET "../fonts/fonts.list" WEB IMAGEPATH "../tmp/" IMAGEURL "/public/pgRouting/tmp/" END PROJECTION "init=epsg:4612" # JGD2000 END UNITS DD SYMBOL NAME "hatch" TYPE hatch END LAYER NAME "roads" DATA kanagawa STATUS DEFAULT TYPE LINE CLASS COLOR 195 195 195 END END LAYER NAME "place_names" DATA chimei STATUS DEFAULT TYPE ANNOTATION LABELITEM "NAMAE" CLASS COLOR 20 20 20 LABEL TYPE TRUETYPE FONT gothic ENCODING SJIS COLOR 220 3 3 SHADOWCOLOR 210 210 5 SIZE 8 POSITION CC PARTIALS TRUE BUFFER 7
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询