我有一个数据库相关的问题,说明了前面的问题在这里找到。hba.conf。归根结底,我需要弄清楚如何打开SSL,以便删除和重新创建数据库。
在试图排除这个过程时,我发现我的系统中有一些问题需要解释,因为我目前不知道如何能够执行一些操作。这就是我所经历的。
目前,我能够运行rails c ++、脚本/控制台(我正在使用的系统是Rails 2.3),并且能够从数据库中获取条目。这表示已安装postgresql。声明连接是致命的错误证实了这一点。当我尝试以数据库超级用户身份登录时,我会得到以下错误:
The program 'postgres' is currently not installed. To run 'postgres' please ask your
administrator to install the package 'postgres-xc'运行一个locate postgresql命令会显示我已经安装了这个包。
/var/lib/dpkg/info/postgresql-client-9.2实际上,我确实安装了postgresql,如这段输出片段所示。
/usr/lib/postgresql
/usr/lib/postgresql/9.2
/usr/lib/postgresql/9.2/bin
/usr/lib/postgresql/9.2/bin/clusterdb
/usr/lib/postgresql/9.2/bin/createdb
/usr/lib/postgresql/9.2/bin/createlang
/usr/lib现在,当我尝试sudo apt-get install postgres-xc时,我收到一条消息,声明postgresql将被删除。这里发生什么事情?
最终,我希望找到pg_hba.conf文件,这样我就可以打开SSL。是否安装了postgresql9.2?如果它没有安装,为什么命令显示它是?如果不是,那么postgresql 9.2是什么?是干什么的呢?这些文件只指出:
postgresql-client-9.2 - client libraries and client binaries这是什么意思?我只想知道,因为在我的工作地点,我应该安装客户端,但为了下载postgres,我需要删除客户端。我试着理解我在做什么,这样我就能做出最好的决定。任何输入都会有帮助,谢谢。
发布于 2014-09-09 01:13:08
PostgreSQL命令行客户端程序是psql。
postgres是服务器程序。
https://stackoverflow.com/questions/25725922
复制相似问题