相关推荐recommended
psql: error: connection to server on socket “varrunpostgresql.s.PGSQL.5432“ failed: No such file
作者:mmseoamin日期:2024-01-18
当我在linux debian版本安装postgres数据库遇到的问题:
root@VM-8-13-debian:~# sudo su - postgres
postgres@VM-8-13-debian:~$ 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?
帮我解决成功的方法如下:可以直接复制运行,需要看注释

步骤一:

dpkg-reconfigure locales

步骤二: