Difference between revisions of "MongoDB Getting Started"

From mi-linux
Jump to navigationJump to search
(Created page with " == Using MongoDB == To access the database, first login to mi-linux.wlv.ac.uk (csl-student.wlv.ac.uk) using your University username and password. mi-linux can be accessed...")
 
Line 1: Line 1:
 
+
[[Main Page]] >> [[MongoDB|MongoDB_Workbook]] >> Workbook
  
 
== Using MongoDB ==
 
== Using MongoDB ==
Line 30: Line 30:
  
 
Replacing myStudentNumber with your University student number and myNewPasswor with your new password.
 
Replacing myStudentNumber with your University student number and myNewPasswor with your new password.
 +
 +
== Adding a test message ==

Revision as of 16:04, 18 October 2016

Main Page >> MongoDB_Workbook >> Workbook

Using MongoDB

To access the database, first login to mi-linux.wlv.ac.uk (csl-student.wlv.ac.uk) using your University username and password.

mi-linux can be accessed using a Secure Shell client, such as Putty, that is available using the Apps Anywhere system.

Starting MongoDB

Once logged in, to start MongoDB run either the following command:

runMongo

or once you have changed your password (see below):

runMongo yourPassword


Changing Password

Once you have logged into MongoDB successfully you can change the default password:

db.updateUser("myStudentNumber",
{
    pwd: "myNewPassword",
 }
);


Replacing myStudentNumber with your University student number and myNewPasswor with your new password.

Adding a test message