我在ubuntu18.04发行版中使用WSL,在bash中我点击了sudo -u postgres psql,得到了以下错误:Is the server running locally and accepting connections on然后,我尝试了其他postgres操作,比如:sudo -u createdb mydb,但都得到了相同
我已经使用mLab连接到MongoClient.connect,但现在我希望创建一个本地数据库,而不是使用mLab。我尝试将URL更改为"mongodb://localhost:27017/mydb“,以便按照建议在本地创建数据库,但我得到了一个failed to connect to server错误。