> For the complete documentation index, see [llms.txt](https://dev-notes.vinguyen.blog/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev-notes.vinguyen.blog/notes/deployment-and-operation/database/check-if-database-is-reachable-with-nc.md).

# Check if database is reachable with nc

```bash
nc -zv db_host db_port
```

#### Referrence

* <https://www.tecmint.com/check-remote-port-in-linux/>
* <https://linux.die.net/man/1/nc>
* <https://repost.aws/knowledge-center/rds-connectivity-instance-subnet-vpc>
