# How to start YSQL

**URL:** <https://forum.yugabyte.com/t/how-to-start-ysql/4695>\
**Category:** General\
**Created:** [September 24, 2025, 9:39am UTC](https://forum.yugabyte.com/t/how-to-start-ysql/4695 "2025-09-24T09:39:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![clazza101](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@clazza101](https://forum.yugabyte.com/u/clazza101)\
**Post date:** [September 25, 2025, 10:08am UTC](https://forum.yugabyte.com/t/how-to-start-ysql/4695/3 "2025-09-25T10:08:02Z")

</div>

I’ve got YSQL working with one of the containers by first finding out the IP address of the container using:

sudo docker inspect -f ‘{{range.NetworkSetting.Networks}}{{.IPAddress}}{{end}}’ yb1

then:

docker exec -it yb1 /home/yugabyte/bin/ysqlsh –echo-queries -h (IP address)

Credits to this previous forum topic: [Ysqlsh: could not connect to server: Connection refused - General - Yugabyte Community Forum](https://forum.yugabyte.com/t/ysqlsh-could-not-connect-to-server-connection-refused/848/3)

Feel stupid that it took me so long to figure out!

---

_[View the full topic](https://forum.yugabyte.com/t/how-to-start-ysql/4695)._
