-
mongodb可视化工具(Robomongo)
1.1.1 Robo 3T 官方版
- 软件大小:11.2MB
- 更新日期:2018-03-16
- 下载次数:0次
- 软件语言:简体中文
- 软件授权:免费软件
- 软件评级:
- 安全检测:无插件无病毒
- 软件类型:国产软件
- 软件分类:数据库类
- 软件系统:Win All
mongodb可视化工具(Robomongo)简介
RockMongo是一个MongoDB管理工具,连接数据库的时候,输入 相应的地址用户名和密码就好了。点击连接。通过 Rockmongo 你可以管理 MongoDB服务,数据库,集合,文档,索引等等。
它提供了非常人性化的操作。类似 phpMyAdmin(PHP开发的MySql管理工具)。
安装需求
一个能运行PHP的Web服务器,比如Apache Httpd, Nginx ...
PHP - 需要PHP v5.1.6或更高版本,需要支持SESSION
为了能连接MongoDB,你需要安装php_mongo扩展
快速安装
下载安装包,快速安装。
用编辑器打开config.php,修改host, port, admins等参数
在浏览器中访问index.php,比如说:http://localhost/rockmongo/index.php
使用用户名和密码登录,默认为"admin"和"admin"
开始玩转MongoDB!
创建数据库文件的存放位置
在你安装MongoDB的bin 目录下打开cmd, 输入:mongod 回车启动服务。会看到:
Hotfix KB2731284 or later update is not installed. 以及 C:datadb not found 的字样。
这就涉及到了两个问题了。先说第2个。
MongoDB默认数据库文件夹路径为C:/data/db(注:虽然是默认,但是需要你自己创建)。但也可以自己设置默认路径,比如d:/test/data/db。启动mongodb服务之前必须创建数据库文件的存放文件夹,否则不能启动成功。使用系统默认文件夹路径时,启动服务无需加 --dbpath 参数说明。如果不是默认路径,则启动服务格式有如下两种:
(1)mongod --dbpath 存放的路径。如:mongod --dbpath d:testdata 【注:路径不能包含空格,否则使用第2种】
(2)mongod --dbpath "存放的路径" 。如 mongod --dbpath "d:my textdata"
Robomongo连接远程mongodb服务
备份还原数据库
备份
mondump -o ./ #导出到当前路径
恢复
mongorestore /home/zhangy/mongodb/ #这里的路径是所有库的备份路径
Robomongo is now Robo 3T, with support for MongoDB 3.4, new data type NumberDecimal (Decimal128) and ECMAScript 2015 (ES6)
In this release, we have some fundamental changes such as MongoDB 3.4 support, new data type NumberDecimal support and ECMAScript 2015 (ES6) support. Fix for popular shell timeout problem (and shell timeout is configurable on UI now). Stability improvement: Fix to prevent an on-launch crash on macOS Sierra. Security improvement: OpenSSL upgraded to version openssl-1.0.1u (22-Sep-2016). Tool chain upgrades: Modern C++14 features are enabled and usable by developers.
robomongo 怎么导出数据
数据导出:先举个例子作为切入口:
需求:
将test数据库下的things集合中的所有文档导出到D:mongo_data路径下
D:mongobin>mongoexport -d test -c things -o d:mongo_datathings.txt
cmd控制台返回导出的相关信息,如下所示
connected to: 127.0.0.1
exported 15 records
检验一下:
去D:mongo_data找一下是否存在things.txt文件
打开D:mongo_datathings.txt显示如下:
{ "_id" : 3 }
{ "_id" : { "$oid" : "528ec3042e2ec9f2c3cd55de" }, "x" : 6, "y" : 0 }
{ "_id" : { "$oid" : "528ec3042e2ec9f2c3cd55df" }, "x" : 6, "y" : 1 }
{ "_id" : { "$oid" : "528ec3042e2ec9f2c3cd55e0" }, "x" : 6, "y" : 2 }
{ "_id" : { "$oid" : "528ec3042e2ec9f2c3cd55e1" }, "x" : 6, "y" : 3 }
{
"_id" : { "$oid" : "528ec3042e2ec9f2c3cd55e2" }, "add" : [ { "age" :
21, "name" : "jimvin" }, { "age" : 22, "name" : "jimvin" }, { "age" :
23, "name" : "jimvin" }, { "age" : 23, "name" : "jimvin" } ], "x" : 6,
"y" : 4 }
{ &qu缉伐光和叱古癸汰含咯ot;_id" : { "$oid" : "528ec3042e2ec9f2c3cd55e3" }, "num" : 55, "x" : 6, "y" : 5 }
{ "_id" : { "$oid" : "528ec3042e2ec9f2c3cd55e4" }, "age" : null, "num" : null, "......余下全文>>
;x" : 6, "y" : 6 }
{ "_id" : { "$oid" : "528ec3042e2ec9f2c3cd55e5" }, "add" : [ "jimvin", "abc", "aaa" ], "num" : "abc", "x" : 6, "y" : 7 }
{ "_id" : { "$oid" : "528ec3042e2ec9f2c3cd55e6" }, "age" : [ 7, 9 ], "name" : "jimvin", "num" : 20, "x" : 6, "y" : 8 }
{ "_id" : { "$oid" : "528ec3042e2ec9f2c3cd55e7" }, "age" : [ 7, 8, 9 ], "name" : "tom", "x" : 10, "y" : 9 }
{ "_id" : { "$oid" : "5296e6d68378a9afba69af46" }, "add" : { "age" : 20, "name" : "jimvin" }, "name" : "jim", "num" : 10 }
{ "_id" : { "$oid" : "529eab9552bf5eb74acdb35b" }, "name" : "person1", "addr" : { "city" : "a", "state" : "d" } }
{ "_id" : { "$oid" : "529eaba252bf5eb74acdb35c" }, "name" : "person1", "addr" : { "city" : "b", "state" : "c" } }
{ "_id" : { "$oid" : "529eabc352bf5eb74acdb35d" }, "name" : "person1", "addr" : { "city" : "a", "state" : "e" } }
从例子我们基本都能猜出 mongoexport的命令用法,下面我们再详细分析一下:
* mongoexport --db
简写 mongoexport -d
指定要导出集合所在的数据库
eg:
D:mongobin>mongoexport --db test
或 D:mongobin>mongoexport -d test
或 D:mongobin>mongoexport -db test
注意:
相关专题
换一换人气软件
-
泡泡加速器23.11.23.1官方版
2.92 MB|2024-05-16
-
万能数据恢复大师最新官方版
3.28 MB|2024-05-13
-
360软件管家v18.1.6.0官方版
85.2MB|2024-05-11
-
迅游网游加速器7.0.1002.0官方版
222.78MB|2024-05-10
-
雷神加速器v10.1.7.2官方版
88.3MB|2024-05-09
-
得力OCR文字识别3.1.0.5 官方版
29.8MB|2024-05-07
- 51热搜
- 热门分类
- 热门专题
友情链接
热搜推荐
-
爱奇艺v12.4.5.8126最新版
|67.38MB
-
QQ游戏大厅v5.54官方版
|57.9MB
-
我的世界1.14.0.36188最新版
|311.94MB
-
Steam2.10.91.91最新版
|35.3MB
-
wps office12.1.0.15712
|216MB
装机必备软件
小编推荐
-
1
泡泡加速器23.11.23.1官方版
网络加速|
-
2
万能数据恢复大师最新官方版
数据恢复|
-
3
360软件管家v18.1.6.0官方版
系统安全|
-
4
迅游网游加速器7.0.1002.0官方版
网络加速|
-
5
雷神加速器v10.1.7.2官方版
网络加速|
-
6
得力OCR文字识别3.1.0.5 官方版
办公软件|
-
7
手机模拟大师7.3.3592.2470最新版
PC模拟器|
-
8
虎牙直播5.66.1.0最新版
视频播放|
-
9
苹果恢复大师3.6.18.246最新版
数据恢复|