PostgreSQL 8.4 在中文 windows 下安装错误

PostgreSQL 8.4 在中文 windows 下安装错误,第1张

概述这个错误是在安装新版的PostgreSQL 8.4时遇到的,安装程序在 windows xp sp3下启动(简体中文),一路Next, 没注意“locale”选项,当时选择了default,next, 导致无法安装完成,提示: Installation fails with complaint about accessing data/postgresql.conf 发现这个老兄也遇到了: htt

这个错误是在安装新版的Postgresql 8.4时遇到的,安装程序在 windows xp sp3下启动(简体中文),一路Next,没注意“locale”选项,当时选择了default,next,导致无法安装完成,提示:

Installation fails with complaint about accessing data/postgresql.conf
发现这个老兄也遇到了:

http://www.nabble.com/BUG--4785%3A-Installation-fails-to23323059.html#a23323059

搞半天,最后发现了问题,是Psql的全文搜索中没有简体中文支持。其实,安装的时候选择"C"就可以了。

哎,看来我和开源数据库最近老扯不清关系。

这是在nabble上的帖子。

En,I have that damm problem sloved.
Are you using a Non-English Version of windows? for example,JPN,CHS?
If you install your Psql in an Asian-language windows,be sure that "locale" settings should be setted manualy to a supported language,I choosed "C" for it is the first item in the combo.

this is the errmsg when you're using default local settings:

Running the post-installation/upgrade actions:
Delete the temporary scripts directory...
Write the base directory to the ini file...
Write the version number to the ini file...
Initialising the database cluster (this may take a few minutes)...
Executing cscript
Script exit code: 0

Script output:

Ensuring we can write to the data directory (using cacls):
数据无效。(Means data is unavaliable)


The files belonging to this database system will be owned by user "XXXXXXXX".
This user must also own the server process.

The database cluster will be initialized with locale Chinese_XXXXXXX.936.
initdb: Could not find suitable text search configuration for locale Chinese_XXXXXXX.936
The default text search configuration will be set to "simple".

fixing permissions on existing directory D:/XXXXXX... ok
creating subdirectorIEs ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 32MB
creating configuration files ... ok
creating template1 database in D:/XXXXXXX/base/1 ... ok
initializing pg_authID ... FATAL: database locale is incompatible with operating system
DETAIL: The database was initialized with LC_ColLATE "Chinese_XXXXXXXX.936",which is not recognized by setlocale().
HINT: Recreate the database with another locale or install the missing locale.
child process exited with exit code 1
initdb: removing contents of data directory "D:/XXXXXX"

Granting service account access to the data directory (using cacls):
处理的目录: D:/XXXXXXXXX(Processed folder:D:/XXXXXXXXX)

initcluster.vbs ran to completion

Script stderr:


Configuring database server startup...
Executing cscript
Script exit code: 0

Script output:
startupcfg.vbs ran to completion

Script stderr: 总结

以上是内存溢出为你收集整理的PostgreSQL 8.4 在中文 windows 下安装错误全部内容,希望文章能够帮你解决PostgreSQL 8.4 在中文 windows 下安装错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/1180509.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-02
下一篇 2022-06-02

发表评论

登录后才能评论

评论列表(0条)

保存