我试图将数据从旧服务器迁移到新服务器,它们都使用了ubuntu服务器。 我使用过这个命令:
pg_dump -C -h localhost -U localuser dbname | psql -h remotehost -U remoteuser dbname
但它抛出:
psql: could not connect to server: Connection timed out
Is the server running on host "X.X.X.X" and accepting
TCP/IP connections on port 5432?
我在新服务器上检查了postgresql conf,在5432上运行,听.. =" *" 哪里不对了? 谢谢大家!