# Issues starting node-red because insert "/" name of db in mongo node

**URL:** <https://discourse.nodered.org/t/issues-starting-node-red-because-insert-name-of-db-in-mongo-node/57516>\
**Category:** General\
**Created:** [30 January 2022 20:03 UTC](https://discourse.nodered.org/t/issues-starting-node-red-because-insert-name-of-db-in-mongo-node/57516 "2022-01-30T20:03:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carles](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@Carles](https://discourse.nodered.org/u/Carles)\
**Post date:** [30 January 2022 20:03 UTC](https://discourse.nodered.org/t/issues-starting-node-red-because-insert-name-of-db-in-mongo-node/57516/1 "2022-01-30T20:03:45Z")

</div>

Hi, everyone.  
I'm Carles and I'm starting to learn node-red and mqtt. I know a bit of python and nothing of js. I'm trying to send a message to mongodb but when inserted connection in mongo node I wrote "/" and now everytime I start node-red on cmd Windows I can`t because:

30 Jan 20:33:12 - [error] MongoError: database names cannot contain the character '/'

I've uninstalled and reinstalled node-red but always de same problem.  
Thanks in advance and sorry for my english

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [30 January 2022 20:28 UTC](https://discourse.nodered.org/t/issues-starting-node-red-because-insert-name-of-db-in-mongo-node/57516/2 "2022-01-30T20:28:06Z")

</div>

> [@Carles](#):
>
> I'm trying to send a message to mongodb but when inserted connection in mongo node I wrote "/"

Hello Carles,

1. Tell as exactly which mongodb node you have used (there are a few)  
I used **node-red-node-mongodb** succesfully
2. Show as a screenshot of how you configured the node
3. are you running mongodb server locally or did you use a cloud db on Atlas ?

**[EDIT]**  
Missed the part that you said you cant start Node-red because of the wrong config in mongodb  
If thats the case you can start Node-red in safe mode .. which starts NR with the flows stopped

Run form cmd :  
`node-red --safe`

---

<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 January 2022 22:28 UTC](https://discourse.nodered.org/t/issues-starting-node-red-because-insert-name-of-db-in-mongo-node/57516/3 "2022-01-30T22:28:20Z")

</div>

Start node red using  
`node-red --safe`  
and it will open the editor without running the flows, so you can fix it and deploy.

---

<div class="post-metadata">

**Author:** ![Carles](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@Carles](https://discourse.nodered.org/u/Carles)\
**Post date:** [31 January 2022 06:46 UTC](https://discourse.nodered.org/t/issues-starting-node-red-because-insert-name-of-db-in-mongo-node/57516/4 "2022-01-31T06:46:13Z")

</div>

Thanks @Colin @UnborN. I'll try tomorrow.

---

<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 April 2022 06:46 UTC](https://discourse.nodered.org/t/issues-starting-node-red-because-insert-name-of-db-in-mongo-node/57516/5 "2022-04-01T06:46:23Z")

</div>

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