Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added updates to support mongodb. #922

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

subkanthi
Copy link
Collaborator

@subkanthi subkanthi commented Nov 19, 2024

Manual steps to setup MongoDB:

rs.initiate({
  _id: "rs0",
  members: [
    { _id: 0, host: "mongo:27017" }
  ]
});

Create user:

 use admin
 db.createUser(
   {
     user: "myUserAdmin",
     pwd: "admin", // or cleartext password
     roles: [ 
       { role: "userAdminAnyDatabase", db: "admin" },
       { role: "readWriteAnyDatabase", db: "admin" } 
     ]
   }
 )
root@mongo:/# mongosh -u myUserAdmin -p
Enter password: *****

Insert new document

db.empDetails.insertOne( { First_Name: "Radhika", Last_Name: "Sharma", Date_Of_Birth: "1995-09-26", e_mail: "[email protected]", phone: "9848022338" })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant