Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb 数据库错误提示 #11

Closed
talway opened this issue Apr 20, 2015 · 4 comments
Closed

mongodb 数据库错误提示 #11

talway opened this issue Apr 20, 2015 · 4 comments

Comments

@talway
Copy link

talway commented Apr 20, 2015

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

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

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

@keenwon
Copy link
Owner

keenwon commented Apr 20, 2015

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

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

@talway
Copy link
Author

talway commented Apr 20, 2015

http://keenwon.com/1335.html

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

@keenwon
Copy link
Owner

keenwon commented Apr 20, 2015

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

@lock
Copy link

lock bot commented Dec 28, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants