Tag: PostgreSQL的

无法连接到PostgreSQL服务器

我正在尝试使用此处的说明设置PostgreSQL服务器。 我通过apt-get install postgresql安装了软件包,现在我就开始了: sudo -u postgres psql postgres 这给出了错误: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”? 我猜服务器没有运行,但我不知道如何启动它。 任何提示将不胜感激。 更新 :即使在sudo service postgresql start后,运行service postgresql status也不会输出任何内容。 更新#2 :运行ps auxw | grep post ps auxw | grep post也没有出现任何东西,所以我猜测服务器守护进程没有运行。

如何完全删除PostgreSQL 8.4?

我正在寻找一种完全删除PostgreSQL 8.4的方法? 谁能帮我?

我如何配置postgis

PostGIS已安装在ubuntu服务器11.10上 … 现在我如何创建数据库,管理员用户等。 它在哪里安装ls -l /etc/… ?

无法卸载postsql-xc

一旦我安装了postgres-xc和postgres-xc-client,Postgressql安装就被破坏了。 我尝试卸载但无法执行此操作。 活动日志如下: postgres@ashUbuntu:~$ sudo apt-get remove –purge postgres-xc-client postgres-xc [sudo] password for postgres: postgres is not in the sudoers file. This incident will be reported. 试图添加到sudo组但没有帮助。 postgres@ashUbuntu:~$ sudo usermod -a -G sudo postgres [sudo] password for postgres: postgres is not in the sudoers file. This incident will be reported. 现在我很震惊,请帮忙。 @AB解决方案有效,能够卸载: ashutosh@ashUbuntu:~$ su ashutosh […]

如何安装postgresql 9.4

尝试apt-get install postgresql-9.4 ,更新,再次尝试等等。似乎我无法安装它: Couldn’t find any package by regex ‘postgresql-9.4’ 我知道在askubuntu中有一个类似的问题,但那里的答案也不起作用。 我需要postgresql版本9.4因为我正在做一个pg:来自Heroku的备份,如果我没有9.4,我会收到此错误。 非常感谢你的帮助。

如何将postgres数据从8.4迁移到9.1?

我已经将我的ubuntu开发机器从11.04升级到11.10。 在这个过程中,我的postgres也从8.4升级到9.1。 但我似乎丢失了所有数据。 如果我看,我可以看到8.4的数据位于文件夹/var/lib/postgres/8.4/main而我的新数据库位于/var/lib/postgres/9.1/main 。 将数据迁移到新版本的最佳方法是什么? 我可以复制文件吗?

安装PostGIS最简单的方法是什么?

在Ubuntu Server 11.10上安装postgis的最简单方法是什么? apt-get install …

如何在启动期间停止postgres自动启动

我在桌面上安装了postgresql 8.4。 它一直在启动,因为我认为我使用默认设置。 所以我每次都会发出/etc/init.d/postgresql stop ,有时我会忘记 它有文件夹路径, /etc/postgresql/8.4/main /usr/lib/postgresql/8.4 有很多配置文件,如果有人可以告诉我在哪里寻找和改变什么,这将是伟大的。 谢谢。

无法连接到端口5432上的postgresql

我安装了包含PostgreSQL 8.4的Bitnami Django堆栈 。 当我运行psql -U postgres我收到以下错误: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”? PG肯定在运行, pg_hba.conf文件如下所示: # TYPE DATABASE USER CIDR-ADDRESS METHOD # “local” is for Unix domain socket connections only local all all md5 # IPv4 local […]