# Cannot Connect to the database

**URL:** <https://community.forestadmin.com/t/cannot-connect-to-the-database/6134>\
**Category:** Help me!\
**Tags:** setup\
**Created:** [March 29, 2023, 3:44pm UTC](https://community.forestadmin.com/t/cannot-connect-to-the-database/6134 "2023-03-29T15:44:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdango](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@pdango](https://community.forestadmin.com/u/pdango)\
**Post date:** [March 29, 2023, 3:44pm UTC](https://community.forestadmin.com/t/cannot-connect-to-the-database/6134/1 "2023-03-29T15:44:29Z")

</div>

when executing the command:

docker run --rm --init -it -v “$PWD”:/usr/src/app -v ~/.forest.d:/usr/src/cli/.forest.d -e TOKEN\_PATH=“/usr/src/cli” forestadmin/toolbelt projects:create:sql “Skills-DB” --databaseConnectionURL “postgres://postgres: **REMOVED** @host.docker.internal:5432/postgres?schema=public” --applicationHost “localhost” --applicationPort “3310” --databaseSchema “public”","syscall

I get this error:

**×** Cannot connect to the database due to the following error:

**×** {“name”:“SequelizeConnectionRefusedError”,“parent”:{“errno”:-111,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“192.168.65.2”,“port”:5432},“original”:{“errno”:-111,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“192.168.65.2”,“port”:5432}}

the address and port are correct… they are different from the information we entered in the setup panel…

---

<div class="post-metadata">

**Author:** ![Florian\_Gonzales](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/florian_gonzales/32/5541_2.png) [@Florian\_Gonzales](https://community.forestadmin.com/u/Florian_Gonzales)\
**Post date:** [March 30, 2023, 10:24am UTC](https://community.forestadmin.com/t/cannot-connect-to-the-database/6134/2 "2023-03-30T10:24:13Z")

</div>

Hello @pdango 👋

Welcome to the forest community 😁, do you manage to connect to your postgres with the URL of the command 🤔?

Kind regards,

Florian
