使用use無法創(chuàng)建數(shù)據(jù)庫
#求助#我是在windows環(huán)境下使用mongodb, 連接數(shù)據(jù)庫后使用use創(chuàng)建數(shù)據(jù)庫,命令行輸出了"switched to db xxx",然而實際上數(shù)據(jù)庫并沒有從創(chuàng)建成功
#求助#我是在windows環(huán)境下使用mongodb, 連接數(shù)據(jù)庫后使用use創(chuàng)建數(shù)據(jù)庫,命令行輸出了"switched to db xxx",然而實際上數(shù)據(jù)庫并沒有從創(chuàng)建成功
2015-06-29
舉報
2015-08-29
需要插入一條數(shù)據(jù)才能看到
2015-11-19
use mydb;
db.createCollection("users");
2015-11-18
>use mymongodb
>db.collection.insert({})
這樣你再用 show dbs 就能看見啦