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?
DevOps Stack Exchange is a question and answer site for software engineers working on automated testing, continuous delivery, service integration and monitoring, and building SDLC infrastructure. It only takes a minute to sign up.
Sign up to join this communitySomething like:
pg_isready --host=192.168.79.8 --username=test --port=5432
192.168.79.8:5432 - no response
Another solutions is telnet:
telnet 192.168.79.8 5432
Which returns:
Trying 192.168.79.8... Connected to 192.168.79.8. Escape character is '^]'.
If the database is accessible.