Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
development:database:mongodb [2021/07/06 09:55] kalenpw |
development:database:mongodb [2021/07/06 10:13] (current) kalenpw |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Basics ===== | ===== Basics ===== | ||
| Runs on port: '' | Runs on port: '' | ||
| + | |||
| + | ---- | ||
| + | ===== Show databases ===== | ||
| + | <code mongodb> | ||
| + | show dbs | ||
| + | </ | ||
| ---- | ---- | ||
| Line 10: | Line 16: | ||
| <code mongodb> | <code mongodb> | ||
| use db_name # if db_name doesn' | use db_name # if db_name doesn' | ||
| + | # However, db_name will not be saved unless you create a collection | ||
| + | db.createCollection(" | ||
| </ | </ | ||