search

Home  >  Q&A  >  body text

The test database of mongodb is always cleared

Don’t know much about mongodb

The test environment uses the test database

After a period of time, the permissions and data tables of the test database will be automatically cleared

Don’t know where to see the operation log?


Operating environment

os: centos 7.x

mongodb: 2.6

阿神阿神2843 days ago777

reply all(3)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-02 09:26:11

    1. Set the profile, and then view the database operation log, for example:

    设置:
    db.setProfilingLevel(2)
    db.getProfilingLevel()
    
    查看:
    db.system.profile.find()
    

    2. For important systems, it is recommended to use MongoDB Enterprise Edition. The Enterprise Edition provides complete security audit functions.

    For reference.

    Love MongoDB, Have fun!

    reply
    0
  • 黄舟

    黄舟2017-05-02 09:26:11

    You can view the logs. I guess it was hacked by some criminals, just like me

    Then I checked the collection of this database and found this

    So the online database is very safe It's important!

    reply
    0
  • 高洛峰

    高洛峰2017-05-02 09:26:11

    I guess there are testset scheduled tasks, scheduled clearing, etc.

    reply
    0
  • Cancelreply