#!/bin/bash mongo << EOF use test EOF # db.createCollection("AggTaskStatus") # db.createCollection("answerNode") # db.createCollection("autoScore") # db.createCollection("basicNode") # db.createCollection("bug") # db.createCollection("BugData") # db.createCollection("bugDetail") # db.createCollection("bugHistory") # db.createCollection("bugMirror") # db.createCollection("bugPage") # db.createCollection("bugScore") # db.createCollection("bugSimilarScore") # db.createCollection("bugValidity") # db.createCollection("caseToBug") # db.createCollection("configuration") # mongoimport --db test --collection AggTaskStatus --file /usr/local/work/AggTaskStatus.json # mongoimport --db test --collection answerNode --file /usr/local/work/answerNode.json # mongoimport --db test --collection autoScore --file /usr/local/work/autoScore.json # mongoimport --db test --collection basicNode --file /usr/local/work/basicNode.json # mongoimport --db test --collection bug --file /usr/local/work/bug.json # mongoimport --db test --collection BugData --file /usr/local/work/BugData.json # mongoimport --db test --collection bugDetail --file /usr/local/work/bugDetail.json # mongoimport --db test --collection bugHistory --file /usr/local/work/bugHistory.json # mongoimport --db test --collection bugMirror --file /usr/local/work/bugMirror.json # mongoimport --db test --collection bugPage --file /usr/local/work/bugPage.json # mongoimport --db test --collection bugScore --file /usr/local/work/bugScore.json # mongoimport --db test --collection bugSimilarScore --file /usr/local/work/bugSimilarScore.json # mongoimport --db test --collection bugValidity --file /usr/local/work/bugValidity.json # mongoimport --db test --collection caseToBug --file /usr/local/work/caseToBug.json # mongoimport --db test --collection configuration --file /usr/local/work/configuration.json