# MySQL node "connection refused" error

**URL:** <https://discourse.nodered.org/t/mysql-node-connection-refused-error/5342>\
**Category:** General\
**Created:** [30 November 2018 12:23 UTC](https://discourse.nodered.org/t/mysql-node-connection-refused-error/5342 "2018-11-30T12:23:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aanand](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@aanand](https://discourse.nodered.org/u/aanand)\
**Post date:** [30 November 2018 12:23 UTC](https://discourse.nodered.org/t/mysql-node-connection-refused-error/5342/1 "2018-11-30T12:23:32Z")

</div>

Guys,

I have installed MYSQL node.

After configuration of the details and deployment it will give "connection refused" error.

Kindly help us to resolve this issue.

 ![nodered-2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c4561699be856e460dcd1bb260c7a62a3f006f7d.jpeg)

Thanks & Regards,  
Aanand

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [30 November 2018 12:41 UTC](https://discourse.nodered.org/t/mysql-node-connection-refused-error/5342/2 "2018-11-30T12:41:42Z")

</div>

Check that you can connect to the database from outside of Node-RED from the same machine.

---

<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:** [30 November 2018 13:43 UTC](https://discourse.nodered.org/t/mysql-node-connection-refused-error/5342/3 "2018-11-30T13:43:22Z")

</div>

Have you previously been using mysql with this node-red system? The Pool is Closed error suggests that you have a shared connection that is getting closed, or something along those lines. If you have not already done so then restart node red and see if that stops the Pool is Closed message.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [30 November 2018 16:27 UTC](https://discourse.nodered.org/t/mysql-node-connection-refused-error/5342/4 "2018-11-30T16:27:47Z")

</div>

Another almost identical question from @aanand and this one were created together.

Please don't waste people's time by asking the same thing more than once thanks.
