Forgot Username / Pwd to CouchDB

前端 未结 9 576
北海茫月
北海茫月 2020-12-15 07:50

Does anyone know how can I reset the username and password for CouchDB ?

相关标签:
9条回答
  • 2020-12-15 08:40

    For mac users, base folder is /Library/Application Support/couchdb

    0 讨论(0)
  • 2020-12-15 08:42

    You can change couchbase localhost password by using following steps: 1. Install crul(for windows) 2. curl -u Administrator:password http://localhost:8091/controller/changePassword -d password=admin123

    0 讨论(0)
  • 2020-12-15 08:44

    With Apache CouchDB, admin accounts passwords can be changed by editing a file local.ini in the CouchDB config folder (/etc/couchdb/ on most Linux installs). [1]

    Look for the [admin] section, which will list the all admin usernames, along with their hashed passwords:

    [admin]
    foo = -pbkdf2-0e0e83f911c970565fc988497a657bdc21a005e8,19ecef0bea1caf8d7f08fb791379c686,10
    

    Replace the password hash with a new clear text password:

    foo = bar
    

    Now restart CouchDB (sudo restart couchdb on Ubuntu). CouchDB will notice the clear text password on startup and automatically replace it with the hashed version.

    0 讨论(0)
提交回复
热议问题