Drop mongo databáze

Příklady kódu

17
0

drop mongo databáze

// First show what databases have you gotten 
show dbs
// then, use the database name that you want to drop
use YOUR_DATABASE_NAME
// now you can drop it
db.dropDatabase()
// show collections should be empty now
show collections
3
0

drop MongoDB databáze

db.dropDatabase()
3
0

mongodb drop db

db.dropDatabase()
1
0

jak drop db v Mongo shellu

use DB_NAME       // go to the db you want to delete

db.dropDatabase()

show dbs
// droppped db will not be shown

Související stránky

Související stránky s příklady

V jiných jazycích

Tato stránka je v jiných jazycích

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................

Populární v této kategorii

Oblíbené stránky s příklady v kategorii