Mongodb:SyntaxError:意外的标识符 [英] Mongodb:SyntaxError: Unexpected identifier

查看:85
本文介绍了Mongodb:SyntaxError:意外的标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是mongodb的新手.我正在使用mongolab创建免费数据库.我的数据库名称是enron. 使用在线mongoshell连接到mongo数据库,然后发生错误.

i am new in mongodb. i am creating free database using mongolab. my database name is enron. connecting to mongo database using online mongoshell then error occure.

  mongo ds033499.mongolab.com:33499/enron -u user -p user123

错误

  SyntaxError: Unexpected identifier

推荐答案

我遇到了这个问题,发现mongod.exe正在干扰并且不允许我进行远程连接.如果不运行mongod.exe,则无法从Windows打开mongo.exe,因此,您必须转到cmd提示符下的mongo/bin目录,然后在其中运行远程连接语法,它将起作用.

I had this problem and found that mongod.exe was interfering and wouldn't let me connect remotely. Without mongod.exe running, the mongo.exe wouldn't open from windows, so you have to goto the mongo/bin directory in the cmd prompt and THEN run your remote connection syntax there and it will work.

这篇关于Mongodb:SyntaxError:意外的标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆