<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>DZY's Blog</title>
	<atom:link href="http://woshishui.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://woshishui.org</link>
	<description>HOHO，我的日志</description>
	<pubDate>Fri, 12 Sep 2008 13:04:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>postgresql 服务启动后又停止了</title>
		<link>http://woshishui.org/2008/09/10/postgresql-%e6%9c%8d%e5%8a%a1%e5%90%af%e5%8a%a8%e5%90%8e%e5%8f%88%e5%81%9c%e6%ad%a2%e4%ba%86/</link>
		<comments>http://woshishui.org/2008/09/10/postgresql-%e6%9c%8d%e5%8a%a1%e5%90%af%e5%8a%a8%e5%90%8e%e5%8f%88%e5%81%9c%e6%ad%a2%e4%ba%86/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 07:38:33 +0000</pubDate>
		<dc:creator>dzy</dc:creator>
		
		<category><![CDATA[PostgreSQL]]></category>

		<category><![CDATA[权限，服务]]></category>

		<guid isPermaLink="false">http://woshishui.org/?p=99</guid>
		<description><![CDATA[昨天把ntfs盘的权限弄来弄去，结果 postgresql 无法启动了，提示“postgresql 服务启动后又停止了”
cacls .    /T /E /P postgres:R
cacls data /T /E /P postgres:C
提示拒绝
于是在文件的属性高级里删除所有人权限，然后勾上“替换子容器及所有者的权限”，要回了所有权限。再运行一次命令，正常了。
]]></description>
		<wfw:commentRss>http://woshishui.org/2008/09/10/postgresql-%e6%9c%8d%e5%8a%a1%e5%90%af%e5%8a%a8%e5%90%8e%e5%8f%88%e5%81%9c%e6%ad%a2%e4%ba%86/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Your PHP installation does not support PostgreSQL.</title>
		<link>http://woshishui.org/2008/09/10/your-php-installation-does-not-support-postgresql/</link>
		<comments>http://woshishui.org/2008/09/10/your-php-installation-does-not-support-postgresql/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 06:19:46 +0000</pubDate>
		<dc:creator>dzy</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[PostgreSQL]]></category>

		<category><![CDATA[libpq.dll]]></category>

		<category><![CDATA[PATH]]></category>

		<category><![CDATA[phppgadmin]]></category>

		<guid isPermaLink="false">http://woshishui.org/?p=95</guid>
		<description><![CDATA[打开phppgadmin，准备管理postgresql，发现了以下错误
Your PHP installation does not support PostgreSQL. You need to recompile PHP using the &#8211;with-pgsql configure option
您安装的 PHP 不支持PostgreSQL。 你需要重新编译PHP并使用 &#8211;with-pgsql 配置选项。
您的 PHP 中没有完整的数据库支持。
几个浏览器的提示“不同”。
查看 phpinfo ,确实没有发现 pgsql ，但是 php.ini 里面我是加载了 php_pgsql.dll 的，版本也不应该成为问题，一样的配制上星期在学校电脑上测试，成功运行过。
在网上搜索，国外网站上也有人提，回答的多，却没有找到解决方法，浪费了我一整天时间。后来以为是ntfs的权限问题，又弄了半天。
刚才在命令行下运行initdb.exe, 提示
系统无法执行指定的程序。
问题不是我的php设置，是我的操作系统环境。跑去看看postgresql安装版的文件，开头有个批处理
vcredist_x86.exe /q:a /c:&#8221;msiexec /i vcredist.msi /qb!&#8221;
原来这台电脑太“干净”了，没有装 Microsoft VC++ 2005 运行库,装上试试，OK了。
更新：今天[12日]又重装操作系统一次，相同的问题，但是装上了运行库也没在phpinfo里看到pgsql，PHP6.0开发版可以加载，运行 phppgadmin 又提示了另一个错误，也许6.0版本太新了。在php邮件列表里有人说是 5.2.6 版本的 php 中 libpq.dll 的运行环境要求不同了。一个解决办法是安装好 postgresql 服务器，然后把它的 bin 目录写到 PATH [...]]]></description>
		<wfw:commentRss>http://woshishui.org/2008/09/10/your-php-installation-does-not-support-postgresql/feed/</wfw:commentRss>
		</item>
		<item>
		<title>重装 Windows 后,重新设定 PostgreSQL</title>
		<link>http://woshishui.org/2008/09/08/%e9%87%8d%e8%a3%85-windows-%e5%90%8e%e9%87%8d%e6%96%b0%e8%ae%be%e5%ae%9a-postgresql/</link>
		<comments>http://woshishui.org/2008/09/08/%e9%87%8d%e8%a3%85-windows-%e5%90%8e%e9%87%8d%e6%96%b0%e8%ae%be%e5%ae%9a-postgresql/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 11:48:22 +0000</pubDate>
		<dc:creator>dzy</dc:creator>
		
		<category><![CDATA[PostgreSQL]]></category>

		<category><![CDATA[exist]]></category>

		<category><![CDATA[role]]></category>

		<guid isPermaLink="false">http://woshishui.org/?p=92</guid>
		<description><![CDATA[我用的是postgresql 8.3.1 , 以前是用安装包一步步安装的,重装xp操作系统后,我想启用postgresql,于是用了以下命令:
添加用户postgres,然后将用户postgres从本地用户组里删除
net user postgres postgres /add /expires:never /passwordchg:no
net localgroup users postgres /delete
初使化数据库,然后将postgres注册为服务，服务名为wamppg
initdb -D D:\usr\wamp\bin\postgresql\postgresql8.3.1\data -E UTF8 &#8211;locale=C
pg_ctl register -D  D:\usr\wamp\bin\postgresql\postgresql8.3.1\data -N wamppg
成功启动了服务器,才想到我的当前用户是administrator,安装\初使化数据库都用的它,现在postgres这个用户确实是在操作系统里添加了,但是PG数据库里没有.于是无法用postgres用户进入,提示
role &#8220;postgres&#8221; does not exist
看来要操作一下,[用pgadmin连接总是出错,后来发现是大小写的问题.区分大小写哦!]
psql -d postgres
 打开了postgres数据库,这是初使化时默认的数据库.
\l 列出所有的数据库.\du 查看当前的所有用户,
可以看到只有一个用户[角色]Administrator.几个数据库的所有者都是它.
加一个角色,密码和角色名称一样是postgres,记得将它指定为超级用户,还要记得让它有登录的权限。以后它就是老大了,Administrator将要删除.然后将几个数据库的所有者改为postgres.退出用postgres登录无误后删除Administrator
CREATE ROLE postgres LOGIN  USER INHERIT CREATEDB CREATEROLE PASSWORD &#8216;postgres&#8217;;
ALTER DATABASE postgres OWNER TO postgres;
ALTER DATABASE template0 OWNER TO postgres;
ALTER DATABASE [...]]]></description>
		<wfw:commentRss>http://woshishui.org/2008/09/08/%e9%87%8d%e8%a3%85-windows-%e5%90%8e%e9%87%8d%e6%96%b0%e8%ae%be%e5%ae%9a-postgresql/feed/</wfw:commentRss>
		</item>
		<item>
		<title>QQ for linux 官方版本发布</title>
		<link>http://woshishui.org/2008/07/31/qq-for-linux-%e5%ae%98%e6%96%b9%e7%89%88%e6%9c%ac%e5%8f%91%e5%b8%83/</link>
		<comments>http://woshishui.org/2008/07/31/qq-for-linux-%e5%ae%98%e6%96%b9%e7%89%88%e6%9c%ac%e5%8f%91%e5%b8%83/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 05:17:48 +0000</pubDate>
		<dc:creator>dzy</dc:creator>
		
		<category><![CDATA[未分类]]></category>

		<category><![CDATA[qq]]></category>

		<guid isPermaLink="false">http://woshishui.org/?p=86</guid>
		<description><![CDATA[中午11点多，QQ for Linux 官方版本发布了。
]]></description>
		<wfw:commentRss>http://woshishui.org/2008/07/31/qq-for-linux-%e5%ae%98%e6%96%b9%e7%89%88%e6%9c%ac%e5%8f%91%e5%b8%83/feed/</wfw:commentRss>
		</item>
		<item>
		<title>With Or Without You</title>
		<link>http://woshishui.org/2008/06/07/with-or-without-you/</link>
		<comments>http://woshishui.org/2008/06/07/with-or-without-you/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 00:55:25 +0000</pubDate>
		<dc:creator>dzy</dc:creator>
		
		<category><![CDATA[心情]]></category>

		<guid isPermaLink="false">http://woshishui.org/?p=80</guid>
		<description><![CDATA[See the stone set in your eyes
See the thorn twist in your side
I wait for you
Sleight of hand and twist of fate
On a bed of nails she makes me wait
And I wait without you
With or without you
With or without you
Through the storm we reach the shore
You give it all but I want more
And I&#8217;m waiting [...]]]></description>
		<wfw:commentRss>http://woshishui.org/2008/06/07/with-or-without-you/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[转载]中美奥运较量的惊天连环计！</title>
		<link>http://woshishui.org/2008/04/27/%e8%bd%ac%e8%bd%bd%e4%b8%ad%e7%be%8e%e5%a5%a5%e8%bf%90%e8%be%83%e9%87%8f%e7%9a%84%e6%83%8a%e5%a4%a9%e8%bf%9e%e7%8e%af%e8%ae%a1%ef%bc%81/</link>
		<comments>http://woshishui.org/2008/04/27/%e8%bd%ac%e8%bd%bd%e4%b8%ad%e7%be%8e%e5%a5%a5%e8%bf%90%e8%be%83%e9%87%8f%e7%9a%84%e6%83%8a%e5%a4%a9%e8%bf%9e%e7%8e%af%e8%ae%a1%ef%bc%81/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 04:30:47 +0000</pubDate>
		<dc:creator>dzy</dc:creator>
		
		<category><![CDATA[评论]]></category>

		<category><![CDATA[ZD]]></category>

		<category><![CDATA[奥运]]></category>

		<guid isPermaLink="false">http://woshishui.org/?p=78</guid>
		<description><![CDATA[奥运本来应该是盛事，这次办成这样已经表露了太多的问题。眼前好像是藏独煽情，借机会捣乱， 但细想一下前前后后是有显著计划与预谋的连环计和组合拳。随便说说，不以为然的人就把它当阴谋论的小说看好了。   ]]></description>
		<wfw:commentRss>http://woshishui.org/2008/04/27/%e8%bd%ac%e8%bd%bd%e4%b8%ad%e7%be%8e%e5%a5%a5%e8%bf%90%e8%be%83%e9%87%8f%e7%9a%84%e6%83%8a%e5%a4%a9%e8%bf%9e%e7%8e%af%e8%ae%a1%ef%bc%81/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
