Online MongoDB database user expiration Time modified operation record

Source: Internet
Author: User

Log in to the copyright database, showing "This user has expired", the database is using MongoDB, gu need to extend this user's expiration time.

Resolution process:

1) Find the information (MongoDB Library, login username, password, port) in the Tomcat configuration of the website.

2) Use the information above to login to MongoDB

# MONGO 127.0.0.1:27017/fcyym-ufcyym_sa-padmin_hqdrm2012_root

Query all the tables under this library
> Show Collections

Query field information for the corresponding table
> Db.front_user.find ()
As below, we learned that the expiry time of this user editor is 2015-12-31 create_time This is the user's creation time
Dead_line This is the user's expiry time

Modify the expiry time of the above editor
Delayed until 2020-12-31
> db.front_user.update ({"_id": ObjectId ("509c5dc20cf20efcf8bc11d8")}, {"$set": {"Dead_line": Isodate ("2020-12-31 t00:00:00z ")})

Again, the expiry time of editor has been modified.

Use this user to login to the copyright database can normally log in.

Online MongoDB database user expiration Time modified operation record

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.