mongodb 脚本操作

MO='mongo'
$MO << EOF
use testdb
db.dropDatabase()
show dbs
exit;
EOF

posted @ 2017-09-27 17:01  ahuo  阅读(401)  评论(0编辑  收藏  举报