mac端:postgresql:Connection refused问题。
最近postgresql数据库突然连接不上了,显示:Connection refused,具体如下:
- could not connect to server: Connection refused Is the server
running on host “localhost” (::1) and accepting TCP/IP connections
on port 5432? could not connect to server: Connection refused Is the
server running on host “localhost” (127.0.0.1) and accepting TCP/IP
connections on port 5432?
原来是我之前不小心把postgresql用户删掉了,只需要添加一个postgresql用户即可,密码要设置成数据库连接密码。
本文解决了一个在Mac上遇到的PostgreSQL数据库连接问题,错误提示为Connectionrefused。问题原因是不小心删除了postgresql用户,解决方案是重新创建一个postgresql用户,并设置其密码为数据库连接密码。

4513

被折叠的 条评论
为什么被折叠?



