ICode9

精准搜索请尝试: 精确搜索
  • python连接MongoDB(无密码无认证)2019-02-15 15:03:45

      无密码无认证下连接 from pymongo import MongoClient host = '127.0.0.1' # 你的ip地址 client = MongoClient(host, 27017) # 建立客户端对象 db = client.mydb # 连接mydb数据库,没有则自动创建 myset = db.testset # 使用test_set集合,没有则自动创建 myset.insert({"n

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有