zoukankan      html  css  js  c++  java
  • monog和github学习

    1.导出服务器数据库到本地以json的格式储存:
    mongoexport -h ip -d dbname -c user
    -o D:mondbuser.json
    2.导入本地Json到本地项目中:
    D:developsoftwareMongoDBin>mongoimport -d dbname -c user --file D:mondbu
    ser.json
    3.进入monogo数据库

    D:developsoftwareMongoDBin>mongoexport -h ip -d dbname -c user
    -o D:mondbuser.json
    2015-12-23T19:28:07.434+0800 connected to: 123.57.250.189
    2015-12-23T19:28:07.496+0800 exported 24 records

    D:developsoftwareMongoDBin>mongoimport -d dbname -c user --file D:mondbu
    ser.json
    2015-12-23T19:28:50.987+0800 connected to: localhost
    2015-12-23T19:28:51.006+0800 imported 24 documents


    D:developsoftwareMongoDBin>mongo
    2015-12-23T19:28:55.804+0800 I CONTROL [main] Hotfix KB2731284 or later update
    is not installed, will zero-out data files
    MongoDB shell version: 3.2.0
    connecting to: test
    > use dbname
    switched to db dbname
    > db.user.findOne()
    {
    "_id" : ObjectId("554b4648c72d0a3f078b556a"),
    "id" : "1",
    "username" : "aaa",
    "password" : "bdddd",
    "create_time" : null
    }
    > exit
    4.git进入用户中心,profile,然后有个库,就可以下面有个搜索然后输入别人的用户名
    就可以加入别人到项目组

    下面是github扩展php网址:http://pecl.php.net/package/mongo/1.4.5/windows

  • 相关阅读:
    第一次用python 写的简单爬虫 记录在自己的博客
    【转】使用notepad运行python
    Android Tools&Cmd
    箴言
    无问西东
    Unity存储路径
    手机屏幕亮度设定
    Go Lang
    iOS .tbd
    Prime31
  • 原文地址:https://www.cnblogs.com/sengling/p/5071306.html
Copyright © 2011-2022 走看看