一 问题描述
连接postgre,报错:
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.1921"?
二 解决办法
加上-h参数指定ip,示例:
psql -h 192.168.1.101
连接postgre,报错:
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.1921"?
加上-h参数指定ip,示例:
psql -h 192.168.1.101