# Unable to connect to DB

**URL:** <https://discourse.nodered.org/t/unable-to-connect-to-db/34422>\
**Category:** General\
**Created:** [17 October 2020 16:53 UTC](https://discourse.nodered.org/t/unable-to-connect-to-db/34422 "2020-10-17T16:53:23Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![ebolisa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ebolisa/32/89203_2.png) [@ebolisa](https://discourse.nodered.org/u/ebolisa)\
**Post date:** [17 October 2020 20:18 UTC](https://discourse.nodered.org/t/unable-to-connect-to-db/34422/21 "2020-10-17T20:18:47Z")

</div>

Yes, at home. The ESP connects via WiFi and the Pi via Ethernet.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 October 2020 20:23 UTC](https://discourse.nodered.org/t/unable-to-connect-to-db/34422/22 "2020-10-17T20:23:54Z")

</div>

Have you used the same mysql server IP in the controllers as in node-red?

---

<div class="post-metadata">

**Author:** ![ebolisa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ebolisa/32/89203_2.png) [@ebolisa](https://discourse.nodered.org/u/ebolisa)\
**Post date:** [17 October 2020 20:29 UTC](https://discourse.nodered.org/t/unable-to-connect-to-db/34422/23 "2020-10-17T20:29:38Z")

</div>

Yes.

This' what I see in the console:

```auto
Start Node-RED
 
Once Node-RED has started, point a browser at http://192.168.0.220:1880
On Pi Node-RED works better with the Firefox or Chrome browser
 
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
 
To find more nodes and example flows - go to http://flows.nodered.org
 
Starting as a systemd service.
17 Oct 22:26:44 - [error] [mysql:mysql] Database not connected
17 Oct 22:26:46 - [error] [mysql:mysql] Database not connected

```

---

<div class="post-metadata">

**Author:** ![ebolisa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ebolisa/32/89203_2.png) [@ebolisa](https://discourse.nodered.org/u/ebolisa)\
**Post date:** [17 October 2020 21:02 UTC](https://discourse.nodered.org/t/unable-to-connect-to-db/34422/24 "2020-10-17T21:02:09Z")

</div>

@Colin I was able to reproduce the problem with a different app from my PC. So, the issue is ISP server related.

Thanks for helping.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 December 2020 21:02 UTC](https://discourse.nodered.org/t/unable-to-connect-to-db/34422/25 "2020-12-16T21:02:14Z")

</div>

Closed on 16 December 2020 21:02 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/unable-to-connect-to-db/34422.md?page=1)
