San*_*rck 5 postgresql windows sql
今天,我的 PostgreSQL 在我的 Windows 机器上不再启动......
我尝试在Windows服务中启动该服务,但出现以下错误:
Windows could not start the PostgreSQL Database Server 8.3 service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.
Run Code Online (Sandbox Code Playgroud)
然后我到命令行手动启动C:/Program Files (x86)/PostgreSQL/8.3/bin/psql.exe,然后得到这个错误:
psql: Could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "???" and accepting TCP/IP connections on port 5432?
Run Code Online (Sandbox Code Playgroud)
编辑:我在日志中发现了这一点:
2011-04-22 13:13:16 CEST LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2011-04-22 13:13:16 CEST LOG: unexpected EOF on client connection
Run Code Online (Sandbox Code Playgroud)
小智 0
该日志数据来自正在运行的服务器!这是最新日志的结尾吗?如果是的话,它甚至似乎不再创建新的日志文件。
当 postgresql 启动时,它会使用 -D 选项将路径传递到数据文件夹。如果您转到 Windows 服务管理器,您应该能够在那里检查该路径。看看是否与实际路径匹配。如果它包含正斜杠而不是反斜杠,在这种情况下是正常的。如果路径错误,您将不得不深入注册表进行更正,因为服务管理器没有为您提供更改路径的方法。
当您在服务管理器中时,还要检查 postgres 服务在 postgres 用户帐户下运行。
另请检查 postgres 用户是否拥有数据文件夹的所有权限。其他用户不应该拥有该文件夹的权限。
如果这没有帮助,也许您最好尝试备份数据文件夹。卸载 postgres 重新安装相同版本。不要放回备份,首先检查它是否正常工作。然后停止服务器,放回备份,启动服务器,祈祷吧。
归档时间: |
|
查看次数: |
45340 次 |
最近记录: |