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