mongodb
zb0567
这个作者很懒,什么都没留下…
展开
-
mongo2018-10-18T14:13:16.837+0800 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017
mongo命令失败 负责运行数据库需要先执行mongod 负责开机原创 2018-10-18 14:16:58 · 6893 阅读 · 0 评论 -
mongod exception in initAndListen: NonExistentPath: Data directory C:\data\db\ not found., terminati
mongod 没找到路径mongod --dbpath D:\zz\mongodb-data\db更改默认数据库路径原创 2018-10-18 14:24:16 · 8010 阅读 · 0 评论 -
Could not find a version that satisfies the requirement pymongo (from versions: ) No matching distri
pip install pymongo 安装不成功解决方法:pip install pymongo -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 秒成功原创 2018-10-18 15:04:15 · 2804 阅读 · 7 评论 -
mongodb 不能启动服务 发生服务特定错误: 100. 发生服务特定错误: 5
1、修改前期的服务在regedit进入注册表 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ 路径下 寻找mongodb修改imgpath 即可2、特定服务5cmd没有管理员权限,右键管理员权限执行即可3、特定服务100删除data\db下面的 mongod.lock storage.bson在用net sta...原创 2018-10-18 16:02:52 · 983 阅读 · 0 评论 -
2018-10-18T16:22:46.566+0800 E QUERY [js] TypeError: db.addUser is not a function :
新版的MongoDB已经不支持addUser方法了。 改成createUser了。 db.createUser({user:"zz",pwd:"zz",roles:[{role:"root"}])创建一个数据库新用户用db.createUser()方法,如果用户存在则返回一个用户重复错误。db.createUser(user, writeConcern) user这个文档创建...转载 2018-10-18 18:02:32 · 4005 阅读 · 0 评论 -
pymongo.errors.OperationFailure: not authorized on walden to execute command { find: "sheet_lines",
添加mongod --dbpath "D:\zz\mongodb-data\data\db" --logpath "D:\zz\mongodb-data\logs\MongoDB.log" --directoryperdb --auth --serviceName MongoDB --installmongod --dbpath "D:\zz\mongodb-data\data\db" -...原创 2018-10-19 10:40:43 · 1342 阅读 · 0 评论