如何解决OS 10.6(Snow Leopard)上的PostgreSQL错误 [英] How to resolve this PostgreSQL error on OS 10.6 (Snow Leopard)
本文介绍了如何解决OS 10.6(Snow Leopard)上的PostgreSQL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遵循了在我尝试之前,一切似乎都还不错:
All seems to go fine until I try:
createuser --superuser myname -U 邮递员
createuser --superuser myname -U postgres
我收到以下异常:
createuser:无法连接到 数据库postgres:无法连接 到服务器:没有这样的文件或目录 服务器在本地运行吗? 接受Unix域上的连接 套接字"/tmp/.s.PGSQL.5432"?
createuser: could not connect to database postgres: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
对于我的一生,我不知道该如何解决.有什么想法吗?
For the life of me I can't figure out how to resolve this. Any ideas???
推荐答案
在安装之前,我必须删除现有的postgres用户.
I had to remove the existing postgres user before doing the install.
这篇关于如何解决OS 10.6(Snow Leopard)上的PostgreSQL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文