Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Resetting Database

  1. Start mongo shell, from a command prompt (windows) or bash shell (Linux).

    On Windows,
    Code Block
    titleStarting Mongo Shell In Windows
    c:\> C:\xampp\mongodb\bin\mongo.exe
    On Linux, 
    # mongo
    MongoDB shell version: 2.6.1
    connecting to: test
    >
    Code Block
    titleStarting Mongo Shell In Linux
    # mongo
    MongoDB shell version: 2.4.10
    connecting to: test
    Welcome to the MongoDB shell.
    >
  2. Run the following commands

    Code Block
    titleMongoDB commands to reset all FileCloud databases
    > use tonidosettingsdbtonidosettings;
    > db.dropDatabase();
    > use tonidoclouddb; 
    > db.dropDatabase(); 
    > use tonidosyncdb; 
    > db.dropDatabase();
    > use tonidostoragedb; 
    > db.dropDatabase();