I whished there were a tool like ping for databases? I just want to ping the database and see if it is accessible from a remote server from Linux command line (bash).

I read about telnet, but I am not sure how it works.

Any suggestions?

1 Answer 1


Something like:

pg_isready --host= --username=test --port=5432 - no response

Another solutions is telnet:

telnet 5432

Which returns:

Trying Connected to Escape character is '^]'.

If the database is accessible.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.