[MongoDB] How to create new database.

This is the manual how to create new database for developing on ZTI database server. Remote to ZTI database server. Login to mongo$ mongo Authen to with admin account.> use admin;> db.auth(‘<admin_username>’, ‘<admin_password>’);1 Create new database. > use <db_name>;> db.createUser( { user: “<username>”, pwd: “<password>”, roles: [ { role: “readWrite”, db: “<db_name>” } ] });> […]

Teerakorn Bounoy

April 6, 2023