Skip to content

Instantly share code, notes, and snippets.

@binki
Created October 23, 2017 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binki/b8e1fa4c18ce2b9aa031297fcbafca9f to your computer and use it in GitHub Desktop.
Save binki/b8e1fa4c18ce2b9aa031297fcbafca9f to your computer and use it in GitHub Desktop.
mongo error when passing connection URL to connect()
sam ~ # mongo --nodb ~/.mongo-do-auth.js ~/s2.js
MongoDB shell version: 2.6.12
loading file: /root/.mongo-do-auth.js
2017-10-23T15:47:53.636+0000 Error: Invalid port number "asdf123@localhost" in connection string "mongodb://root:asdf123@localhost/admin" at src/mongo/shell/mongo.js:135
failed to load: /root/.mongo-do-auth.js
@samuelpaez
Copy link

tambien buscada una respuesta con esto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment