JavaScript execution failed connected to mongoHQ shell

后端 未结 2 885
-上瘾入骨i
-上瘾入骨i 2021-01-17 10:54

Trying to access MongoHQ directly:

> mongo mongodb://heroku:mypassword@alex.mongohq.com:10046/myapp
MongoDB shell version: 2.4.3
connecting to: mongodb://         


        
2条回答
  •  悲哀的现实
    2021-01-17 11:08

    Just see if you have $ in your password, in that scenario enclose your password with ' ' then try to connect.

    e.g.

    mongo mongodb://host:port/authdb -username dbusername -p 'password$123'

提交回复
热议问题