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用户即可,密码要设置成数据库连接密码。