# Add mysql node via package.json but node-red doesnt load it

**URL:** <https://discourse.nodered.org/t/add-mysql-node-via-package-json-but-node-red-doesnt-load-it/91040>\
**Category:** General\
**Tags:** docker, mysql, package\
**Created:** [17 September 2024 09:11 UTC](https://discourse.nodered.org/t/add-mysql-node-via-package-json-but-node-red-doesnt-load-it/91040 "2024-09-17T09:11:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JePi](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@JePi](https://discourse.nodered.org/u/JePi)\
**Post date:** [17 September 2024 09:11 UTC](https://discourse.nodered.org/t/add-mysql-node-via-package-json-but-node-red-doesnt-load-it/91040/1 "2024-09-17T09:11:41Z")

</div>

Add mysql node via package.json but node-red doesnt load it. But If enter the container and run npm install node-red-node-mysql it installs it and it works. But if restart the container its gone . Running Node-red in container in IOTStack

---

<div class="post-metadata">

**Author:** ![JePi](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@JePi](https://discourse.nodered.org/u/JePi)\
**Post date:** [17 September 2024 12:30 UTC](https://discourse.nodered.org/t/add-mysql-node-via-package-json-but-node-red-doesnt-load-it/91040/2 "2024-09-17T12:30:32Z")

</div>

I fixed by using  
$ npm install -g node-red-admin  
$ node-red-admin install node-red-node-mysql

---

<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:** [1 October 2024 12:31 UTC](https://discourse.nodered.org/t/add-mysql-node-via-package-json-but-node-red-doesnt-load-it/91040/3 "2024-10-01T12:31:21Z")

</div>

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