ubuntu系统上执行psql 报错
Warning: No existing cluster is suitable as a default target. Please see man pg_wrapper(1) how to specify one. Error: You must install at least one postgresql-client-<version> package
原因是没有安装psql客户端,安装过程如下:
sudo apt install postgresql-client-common echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list sudo apt update sudo apt -y install postgresql-client再次执行psql 可以运行
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?
标签:psql,postgresql,package,sudo,apt,client,install,ubuntu From: https://www.cnblogs.com/xzlive/p/16789319.html