Not
  • Merhaba Dünya
  • Python
    • Sanal Ortam
    • Json
    • Cheat Sheet
    • Search
  • Javascript
    • Node
    • Vue
  • PostgreSQL
    • Install
    • Start Stop
    • Create Db
    • Backup Restore
    • Insert, Update, Delete
    • Kısa Yollar
  • Docker
    • Cheat Sheet
    • Problem
    • Komutlar
    • Örnek Konfigürasyon
    • Volume
  • Php, MySQL
  • Amazon AWS
  • Git
  • Celery
  • Mongo
    • Delete
    • Update
    • Amazon DocumentDB
  • Linux
  • Avesome
  • Bazı Bilgiler
  • Django
    • Models
    • Cheat Sheet
    • Snippets
  • Redis
  • Visual Studio Code
Powered by GitBook
On this page

Mongo

Mongoyu çalıştır

mongod

yada

mongod --dbpath <path to data directory>

Kullanıcı açma ve yetkilendirme

use marketing
db.createUser(
   {
     user: "yagmur",
     pwd: "park.123",
     roles: [ "readWrite", "dbAdmin" ]
   }
)

Backup Restore

Tüm collection ları yedek alır.

mongodump --host 127.0.0.1:27017 --out /home/papatya/backup/

Geri yükler

mongorestore -d marketing /home/papatya/backup/marketing/
PreviousCeleryNextDelete

Last updated 5 years ago