I am trying to restore my local database using pg_restore command. My command line is-
pg_restore -v -h Amazonhostname -U dbsetup -C -d catalog_db < c:\Catalog_backup.tar
But I am getting the following error:
pg_restore: [archiver (db)] connection to database "catalog_db" failed: could not connect to server: Connection timed out (0x0000274C/10060) Is the server running on host amazonhostname (13.59.232.190) and accepting TCP/IP connections on port 5432?
How can I solve this?
User contributions licensed under CC BY-SA 3.0