laddakh is not going to be an acceptable hostname.
Actually, the error message proves that your assumption is not correct. The error says "Connection refused". That specifically means that a TCP connection was successful in reaching the target host (IP address) but that the specified port number was not listening for incoming connections. So the host name ('laddakh') is one part of the connection spec that we can be certain is not invalid.
Since many people are not aware of the precise meaning of "Connection refused", the error even elaborates quite a bit about it in hopes or helping out:
could not connect to server: Connection refused Is the server running on host "laddakh" and accepting TCP/IP connections on port 5432?
So this means that no postgresql server is running on the (valid) host 'laddakh' at port 5432. Possible explanations:
- The postgresql server software has not been installed there yet
- The postgresql server is simply not running at the moment and just needs to be started
- The postgresql server has been configured to use a TCP port other than the default of 5432
- The postgresql server has been configured to not use any TCP port at all
- The server is up and running, just on a host other than 'laddakh'.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.