08 2020 档案

摘要:参考:mongoose报错:DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead mongoose报错:(node:9716)DeprecationWarning: collection 阅读全文
posted @ 2020-08-29 11:07 JaceyKan 阅读(400) 评论(0) 推荐(0) 编辑
摘要:MongoDB使用命令创建用户权错误分析 错误一:权限不够Error:couldn't add user:command createUser requires authentication、 解决方案:先使用超级管理员登录,再进行其他数据库用户创建的创建。 阅读全文
posted @ 2020-08-28 18:02 JaceyKan 阅读(12026) 评论(1) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/qq_40659195/article/details/88411838 最近尝试用Node写一个小案例,使用到了MongoDB,使用过的人可以知道,Node-js操作MongoDB的官方包实在有些麻烦,为了方便开发,使用了mongoose这样的一个 阅读全文
posted @ 2020-08-25 16:23 JaceyKan 阅读(922) 评论(1) 推荐(0) 编辑
摘要:遇到的问题 参考:mongo中时间跟实际时间相差8小时 Mongo中一个Collection有一个字段用来存放数据的插入时间,但记录的时间比实际时间晚了8小时。 查询得知存储在mongodb中的时间是标准时间UTC +0:00,而中国时区是+8.00, 请问有什么办法保证Collection中的插入 阅读全文
posted @ 2020-08-18 11:57 JaceyKan 阅读(12587) 评论(0) 推荐(0) 编辑
摘要:参考: https://www.itranslater.com/qa/details/2325714161562551296 是否可以将模板字符串创建为常用字符串 let a="b:${b}"; 然后将其转换为模板字符串 let b=10; console.log(a.template());//b 阅读全文
posted @ 2020-08-16 20:24 JaceyKan 阅读(2568) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示