如何检查 MEAN 堆栈中的数据库集合
How to check database collections in MEAN stack
我正在使用 Ubuntu OS 14.04。我已经安装了 MEAN 堆栈项目的所有要求。引用此网站 click here
上面解释的示例对我有用,但我想检查数据库集合
请告诉我在Ubuntu中使用mongodb的正确方法。我是 MEAN 堆栈的新手
谢谢
您可以通过 运行 "sudo service mongod start" 启动 Mongo 数据库服务器。
之后你可以打开一个新的终端并输入 "mongo" 并且应该通过显示 "connecting to test".
连接到 mongo 数据库服务器
use following commands:
-> "show dbs" - show existing database.
-> "use db_name" - to switch to a particular database.
-> "show collections" - to show all the collections in the selected database
对此我不太确定,如果失败,您可以下载并使用 MongoDB GUI,例如 Mongo Management Studio 或 Mongo Booster 或 RoboMongo .
我正在使用 Ubuntu OS 14.04。我已经安装了 MEAN 堆栈项目的所有要求。引用此网站 click here
上面解释的示例对我有用,但我想检查数据库集合
请告诉我在Ubuntu中使用mongodb的正确方法。我是 MEAN 堆栈的新手
谢谢
您可以通过 运行 "sudo service mongod start" 启动 Mongo 数据库服务器。 之后你可以打开一个新的终端并输入 "mongo" 并且应该通过显示 "connecting to test".
连接到 mongo 数据库服务器use following commands:
-> "show dbs" - show existing database.
-> "use db_name" - to switch to a particular database.
-> "show collections" - to show all the collections in the selected database
对此我不太确定,如果失败,您可以下载并使用 MongoDB GUI,例如 Mongo Management Studio 或 Mongo Booster 或 RoboMongo .