keenwon/antcolony

mongodb 数据库错误提示

Closed this issue · 4 comments

数据库 我是安装另外一天机器上,远程到这台的;
安装数据库时建立了数据库和用户密码;

在提示成功后
查询是否有入库时,提示出错了;

db.yourColl.count();
2015-04-20T22:31:29.448+0800 count failed: {
"ok" : 0,
"errmsg" : "not authorized on antcolony to execute command { count: "yourColl", query: {}, fields: {} }",
"code" : 13
} at src/mongo/shell/query.js:191

这不是有提示吗,没权限,先切换到AntColony库,然后验证权限

use antcolony
db.auth('XXXXXXXXXX','OOOOOOOO')

http://keenwon.com/1335.html

嗯 是的,麻烦在你的教程下面,举个例子 加上建立数据库 用户 密码 和用户验证;谢谢

那文章只是个简单的安装过程,具体的使用,不管官方的还是非官方的,有大把大把的教程可google到

lock commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.