我有两个本地运行的数据库,我可以通过psql命令行连接到两者,但是当我尝试连接到第二个数据库时,我的单元测试数据库,它会抛出一个"连接到服务器已经失去了"错误。我没有问题通过pgAdmin4连接到开发数据库。
这是控制台输出:
$ psql
psql (9.6.4)
Type "help" for help.
admin=# \c development
You are now connected to database "development" as user "admin".
development=# \c test
You are now connected to database "test" as user "admin".
test=#