但我得到的是:meteor mongo blah.meteor.com
然后我尝试了以下命令:connecting to: sg-mother1-6243.servers.mongodirector.com:27017/blah_meteor_com 2016-01-18T15:21:49.884+0200 Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1210 exception: login failed
我获得了用户名光标。我输入我的Meteor网站用户名并按回车键,然后获得密码光标。我输入上述用户名的密码并按回车键。我被呈现以下URL:meteor mongo --url blah.meteor.com
然后每次重新输入:mongodb://client-2ee8c14d:c1546ca8-4e7e-5883-0214-150b309fb4fb@SG-mother1-6242.servers.mongodirector.com:27017/blah_meteor_com
我都被认为已经登录,并且只会呈现类似于上面呈现的URL。我阅读了“meteor mongo命令”文档,输入以下内容:meteor mongo --url blah.meteor.com
在文档中,我读到以下行:meteor mongo --help
为了理解这句话的意思,我回到了我之前提到的线程(stackoverflow.com/questions/11801278/accessing-meteor-production-database),并读到了以下内容:Instead of opening a shell, specifying --url (-U) will return a URL suitable for an external program to connect to the database. For remote databases on deployed applications, the URL is valid for one minute.
我不知道除了我2015年使用的方法("所以它的意思是,通过使用--url选项运行命令提供的url是用于连接到数据库的某个外部应用程序,即其他应用程序而不是Meteor。"
)之外,还有哪些应用程序可以帮助我连接到Meteor生产数据库。我看到有人说我可以使用mongo shell,但我不知道如何打开它,也不知道当它与Meteor一起安装时的mongo安装目录。我正在使用Linux(Fedora)操作系统。meteor mongo blah.meteor.com
我如何在2016年访问Meteor的生产数据库?是否有升级使我不能像2015年一样轻松访问Meteor的生产数据库?