所以。 我有一个问题 。 没有给出任何输出,PostgreSQL 8.4将不会启动或重新启动。
但它的工作3个月,直到主机提供商不重新启动服务器。 现在它已经完全破碎了。 它不会启动,不会给出任何输出或日志。
pg_dump: [archiver (db)] connection to database "postgres" failed: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
现在我想备份(或者只是启动pgsql套接字)我的数据库重新安装postgesql。 怎么样?
SOOOO。 这是解决scheme。
问题是我的postgresql(出于某种原因:o)没有创build任何集群。
所以我创造了一个:
pg_createcluster 8.4 main
现在让我们findsilimar到旧的数据文件夹: find / -name 'PG_VERSION'
这里是 – /usr/local/pgsql/data/
。 现在编辑群集文件夹中的postgresql.conf
。
您必须用旧文件夹replacedata_directory
varranible值。
现在你可以重启你的服务器了。 一切都会正常工作。