# “POOL IS CLOSED” Error in mysql2 Node

**URL:** <https://discourse.nodered.org/t/pool-is-closed-error-in-mysql2-node/99413>\
**Category:** General\
**Tags:** mysql\
**Created:** [16 October 2025 06:48 UTC](https://discourse.nodered.org/t/pool-is-closed-error-in-mysql2-node/99413 "2025-10-16T06:48:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubhamnodered](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@shubhamnodered](https://discourse.nodered.org/u/shubhamnodered)\
**Post date:** [16 October 2025 06:48 UTC](https://discourse.nodered.org/t/pool-is-closed-error-in-mysql2-node/99413/1 "2025-10-16T06:48:13Z")

</div>

Hi everyone,

I recently came across an error in Node-RED related to the **mysql2** node:

> **"POOL IS CLOSED"**

This is what i saw in the debug window....

```auto
{
  " __enc__": true,
  "type": "error",
  "data": {
    "name": "Error",
    "message": "Pool is closed.",
    "stack": "Error: Pool is closed.\n at C:\\Users\\IIoT-PC\\.node-red\\node_modules\\mysql2\\lib\\base\\pool.js:37:40\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)"
  }
}

```

How i came across this eroor:  
I had stopped the MySQL service for about 30minutes(approx). After that i restarted MySQL service, I began seeing this error in the Node-RED debug window (coming from mysql node). Interestingly, even though the error appeared, data was still being successfully pushed to the SQL server.

The error disappeared once I restarted the Node-RED service.

So my questions are:

- Can anyone tell me what does **“POOL IS CLOSED”** pertaining to node-red? And Should I be concerned about it?

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![shubhamnodered](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@shubhamnodered](https://discourse.nodered.org/u/shubhamnodered)\
**Post date:** [16 October 2025 06:54 UTC](https://discourse.nodered.org/t/pool-is-closed-error-in-mysql2-node/99413/2 "2025-10-16T06:54:49Z")

</div>

nevermind, i got the answer @ [errror-pool-is-closed](https://discourse.nodered.org/t/error-pool-is-closed/5343/3)

---

<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:** [30 October 2025 06:55 UTC](https://discourse.nodered.org/t/pool-is-closed-error-in-mysql2-node/99413/3 "2025-10-30T06:55:03Z")

</div>

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