---
description: Check if database is reachable with nc
---

# 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://www.tecmint.com/check-remote-port-in-linux/)
* [https://linux.die.net/man/1/nc](https://linux.die.net/man/1/nc)
* [https://repost.aws/knowledge-center/rds-connectivity-instance-subnet-vpc](https://repost.aws/knowledge-center/rds-connectivity-instance-subnet-vpc)
