gpt4 book ai didi

postgresql - 无法安装 PostgreSQL 8.3,无法运行 initdb :1?

转载 作者:行者123 更新时间:2023-11-29 13:36:54 24 4
gpt4 key购买 nike

我正在使用 pgInstaller postgresql-8.3.16-1 重新安装 PostgreSQL。安装过程的最后一步发生错误:

Failed to run initdb:1!

\tmp\initdb.log 显示此消息:

The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

消息很简单,但我找不到安装失败的根本原因。

谁知道是什么原因?

最佳答案

您可能已经在 Posgres8.3 安装试图初始化一个新数据库的位置安装了一个数据库集群。你不能真正混合和匹配那样的版本。

如果可能,请安装您创建现有数据库时的旧版本。然后使用 pg_dumpall创建所有数据的 .SQL 转储。然后您可以移动或删除旧数据库(通常位于 /var/lib/pgsql)并安装新版本。最后,应用数据库转储以取回旧数据。

有关这方面的更多详细信息,请阅读 Upgrading a PostgreSQL cluster手册页。

如果您正在安装相同版本,则无需升级集群,您可以安全地忽略有关 initdb 的错误,只要一切运行正常即可。

关于postgresql - 无法安装 PostgreSQL 8.3,无法运行 initdb :1?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7867224/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com